| | |
| | | using NationalInstruments.TestStand.Interop.API; |
| | | using HMI.Core.Util; |
| | | using HMI.UI.Util; |
| | | using NationalInstruments.TestStand.Interop.API; |
| | | using NationalInstruments.TestStand.Interop.UI.Ax; |
| | | using NationalInstruments.TestStand.Utility; |
| | | using Plugin.TestResult_WPF.Constant; |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception("初始化TS引擎失败:" + ex.Message); |
| | | ViewControl.Logger.Error("InitTestStandEngine Failed.", ex); |
| | | throw new Exception($"{this.lang("Ts.InitTestStandEngineFail")}: {ex.Message}"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception("启动测试序列失败:" + ex.Message); |
| | | ViewControl.Logger.Error("StartTestSequence Failed.", ex); |
| | | throw new Exception($"{this.lang("Ts.StartTestSequenceFailed")}: {ex.Message}"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception(ex.Message); |
| | | ViewControl.Logger.Error("StopTest Failed.", ex); |
| | | throw new Exception($"{this.lang("Ts.StopTestSequenceFailed")}: {ex.Message}"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MessageBox.Show("释放测试序列失败:" + ex.Message); |
| | | MsgBoxHelper.Error(Window.GetWindow(this), |
| | | $"{this.lang("Ts.ReleaseSequenceFileFail")}: {ex.Message}"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | ViewControl.Logger.Warn("TestStand Event Error.", ex); |
| | | } |
| | | } |
| | | |