io映射修改,低压电源命令修改

This commit is contained in:
“hsc”
2026-10-14 16:27:38 +08:00
parent cd52ca64af
commit 59d0c24deb
3 changed files with 1330 additions and 286 deletions
+3 -2
View File
@@ -236,7 +236,8 @@ namespace DeviceCommand.Devices
/// <param name="ct">取消令牌</param>
public async Task 设置CV正向电流(double 电流, CancellationToken ct = default)
{
await SendAsync($"CURRent:LIMit:POSitive {电流}{ScpiDelimiter}", ct);
await SendAsync($"VOLTage:ILIMit {电流}{ScpiDelimiter}", ct);
}
/// <summary>
@@ -247,7 +248,7 @@ namespace DeviceCommand.Devices
public async Task 设置CV反向电流(double 电流, CancellationToken ct = default)
{
// 载模式限制需要负数,若传入正数建议在外部转换为负值
await SendAsync($"CURRent:LIMit:NEGative {电流}{ScpiDelimiter}", ct);
await SendAsync($"VOLTage:ILIMit:NEGative {电流}{ScpiDelimiter}", ct);
}
/// <summary>