15 lines
548 B
C#
15 lines
548 B
C#
|
|
namespace SSPCTester.Devices.Interfaces;
|
||
|
|
|
||
|
|
/// <summary>一个物理插位的 Modbus 电压、电流测量结果。</summary>
|
||
|
|
public sealed record ChannelMeasurement
|
||
|
|
{
|
||
|
|
public int PhysicalSlot { get; init; }
|
||
|
|
public double Voltage { get; init; }
|
||
|
|
public double Current { get; init; }
|
||
|
|
public ushort VoltageRaw { get; init; }
|
||
|
|
public short CurrentRaw { get; init; }
|
||
|
|
public DateTimeOffset Timestamp { get; init; }
|
||
|
|
public string VoltageQuality { get; init; } = "Good";
|
||
|
|
public string CurrentQuality { get; init; } = "Good";
|
||
|
|
}
|