| | |
| | | /// </summary> |
| | | private void StartSequence() |
| | | { |
| | | log.Info($"Start ATE Seq isLoadOK:{isLoadOK}"); |
| | | if (!isLoadOK) return; |
| | | engine?.Globals.SetValBoolean("StationState.StopTest", 0, false); |
| | | try |
| | | { |
| | | engine?.Globals.SetValBoolean("StationState.StopTest", 1, false); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | log.Error("Reset StopTest Failed.", ex); |
| | | } |
| | | if (ParamSetting.EnableAutoModel) |
| | | { |
| | | try |
| | |
| | | { |
| | | try |
| | | { |
| | | if (this.tsSockets.Count > 0) |
| | | { |
| | | for (int i = 0; i < tsSockets.Count; i++) |
| | | { |
| | | var context = this.tsSockets[i].SequenceFileContext; |
| | | context?.StationGlobals.SetValBoolean("StationState.StopTest", 1, true); |
| | | } |
| | | } |
| | | //if (this.tsSockets.Count > 0) |
| | | //{ |
| | | // for (int i = 0; i < tsSockets.Count; i++) |
| | | // { |
| | | // var context = this.tsSockets[i].SequenceFileContext; |
| | | // context?.StationGlobals.SetValBoolean("StationState.StopTest", 1, true); |
| | | // } |
| | | //} |
| | | engine.Globals.SetValBoolean("StationState.StopTest", 1, true); |
| | | if (this.execution == null) return true; |
| | | |
| | | //bool res = this.execution.WaitForEndEx(-1, true, null, null); |