| | |
| | | } |
| | | else |
| | | { |
| | | executionWrapper = new TsExecutionWrapper(); |
| | | executionWrapper = new TeststandWrapper(); |
| | | } |
| | | executionWrapper.UIMessageEvent += ExecutionWrapper_UIMessageEvent; |
| | | |
| | | if (executionWrapper is TsExecutionWrapper tsWrapper) |
| | | if (executionWrapper is TeststandWrapper tsWrapper) |
| | | { |
| | | ((System.ComponentModel.ISupportInitialize)(tsWrapper.AxApplicationMgr)).BeginInit(); |
| | | host.Child = tsWrapper.AxApplicationMgr; |
| | |
| | | { |
| | | foreach (var oven in tables) |
| | | { |
| | | executionWrapper?.SetStationGlobalValue<string>($"StationHMI.UUTHMI[{oven.index}].Name", 1, oven.Name); |
| | | executionWrapper?.SetStationGlobalValue<string>($"StationHMI.UUTHMI[{oven.index}].Name", 1, oven.title); |
| | | } |
| | | executionWrapper?.CommitToDisk(false); |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | executionWrapper?.SetStationGlobalValue<bool>("StationState.StopTest", 0, true, true); |
| | | executionWrapper?.SetStationGlobalValue<bool>("StationHMI.AllStop", 0, true, true); |
| | | |
| | | try |
| | | { |
| | |
| | | tables[ovenIndex].ClearChartData(); |
| | | return; |
| | | } |
| | | |
| | | if (MethodCode == 11) |
| | | { |
| | | /// 清除穴位参数 |
| | |
| | | public void ReleaseResource() |
| | | { |
| | | executionWrapper.UIMessageEvent -= ExecutionWrapper_UIMessageEvent; |
| | | |
| | | executionWrapper.Dispose(); |
| | | foreach (var table in tables) |
| | | { |
| | | table.RelaseResource(); |