io映射修改,低压电源命令修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user