源适应性界面优化

This commit is contained in:
“hsc”
2026-10-12 08:49:04 +08:00
parent 8dd08fcc7a
commit d84f2a874b
3 changed files with 32 additions and 4 deletions
+10
View File
@@ -350,6 +350,16 @@ namespace DeviceCommand.Devices
await SendAsync($"SOUR:LIST:COUN {count}{ScpiDelimiter}", ct);
}
/// <summary>
/// 查询当前相位上下文的列表执行次数 (SOUR:LIST:COUN?),用于下发后回读校验
/// </summary>
/// <returns>执行次数 (0 = 无限循环);解析失败返回 -1</returns>
public virtual async Task<int> 查询列表执行次数Async(CancellationToken ct = default)
{
string resp = await WriteReadAsync($"SOUR:LIST:COUN?{ScpiDelimiter}", ScpiDelimiter, ct);
return int.TryParse(resp.Trim(), out int val) ? val : -1;
}
/// <summary>
/// 设定列表点的静止时间顺序 (SOUR:LIST:DWEL)
/// </summary>