12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Uestc.Auto6.Dso.Core;
- using Uestc.Auto6.Dso.ComModel;
- using UESTC.Auto.SCPIManager;
- namespace Uestc.Auto6.Dso.Scpi
- {
- partial class StubFunc
- {
- public static bool scpiSet_SystemCommon(SCPICommandProcessFuncParam analyResult)
- {
- List<string> param = ParamListToStrList(analyResult.Params);
- if (analyResult.Tag == null || analyResult.Tag is not ScpiTagObj scpiTagObj || scpiTagObj.Tag == null)
- return false;
- switch (scpiTagObj.Tag.ToString())
- {
- case "SysAuto":
- //todo
- break;
- case "SysRun":
- if (Presenter.Status == SysStatus.Stop)
- Presenter.Resume();
- else
- return false;
- return true;
- case "SysStop":
- if (Presenter.Status != SysStatus.Stop)
- Presenter.Stop();
- else
- return false;
- return true;
- case "SysSingle":
- TriggerPrsnt.Mode = TriggerMode.OneShot;
- Presenter.Resume();
- return true;
- case "SysClear":
- //todo
- break;
- default:
- return false;
- }
- return true;
- }
- }
- }
|