From 57db6776b8c95ae6d9f2fd11d85c954b70bf8111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chsc=E2=80=9D?= <“huangsucan@kaiyili-lab.com”> Date: Fri, 7 Aug 2026 10:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BA=E6=B3=A2=E5=99=A8=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DeviceCommand/Devices/TektronixMSO.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DeviceCommand/Devices/TektronixMSO.cs b/DeviceCommand/Devices/TektronixMSO.cs index 5fccf61..3de0115 100644 --- a/DeviceCommand/Devices/TektronixMSO.cs +++ b/DeviceCommand/Devices/TektronixMSO.cs @@ -53,6 +53,28 @@ namespace DeviceCommand.Devices // SCPI 指令结束符 (消息终止符需使用 LF) private const string ScpiDelimiter = "\n"; + #region 兼容旧 MSO44B 枚举(供 ACP 测试项反序列化) + + public enum AcquireMode { Sample = 0, PeakDetect = 1, HiRes = 2, Average = 3, Envelope = 4 } + public enum BandwidthLimit { Full = 0, BW20MHz = 1 } + public enum Channel { Channel1 = 1, Channel2 = 2, Channel3 = 3, Channel4 = 4 } + public enum CouplingMode { DC = 0, AC = 1, GND = 2 } + public enum MeasurementType + { + Amplitude = 1, Frequency = 2, Mean = 3, PK2PK = 4, + Maximum = 5, Minimum = 6, RMS = 7, Overshoot = 8, + Undershoot = 9, PositiveOvershoot = 10, NegativeOvershoot = 11, + RiseTime = 12, FallTime = 13, DutyCycle = 14, + Period = 15, Phase = 16, Delay = 17, + BurstWidth = 18, SlewRateRising = 19, SlewRateFalling = 20, + High = 21 + } + public enum StopAfter { Sequence = 0, RunStop = 1 } + public enum TriggerMode { Auto = 0, Normal = 1 } + public enum TriggerSlope { Rising = 0, Falling = 1 } + + #endregion + public TektronixMSO(TcpConfig config) : base(config) { }