SSPC-Tester/SSPCTester.UI/appsettings.json

92 lines
2.9 KiB
JSON
Raw Normal View History

{
"Devices": {
"MockMode": false,
"Sspc": {
"UseMock": false,
"AutoConnect": true,
"PortName": "COM1",
"BaudRate": 9600,
"DataBits": 8,
"Parity": "None",
"StopBits": "One",
"ReadTimeoutMs": 500,
"Retry": 2,
"DeviceProfilePath": "Config/device-profile.json",
"CloseAllRelaysOnDisconnect": false,
"LogRawFrames": true,
"ModuleAddresses": [ 1, 2, 3 ],
"ChannelsPerModule": 8
},
"PowerSupply": {
"UseMock": false,
"AutoConnect": true,
"PortName": "COM2",
"BaudRate": 9600,
"Host": "192.168.6.5",
"Port": 5025,
"TimeoutSeconds": 2,
"RequirePingBeforeConnect": true,
"Terminator": "\n",
"IdnCommand": "*IDN?",
"VoltageCommand": "MEASure:VOLTage?",
"CurrentCommand": "MEASure:CURRent?"
},
"Load": {
"UseMock": false,
"AutoConnect": true,
"PortName": "COM3",
"BaudRate": 9600,
"Host": "192.168.200.100",
"Port": 30000,
"TimeoutSeconds": 3,
"Terminator": "\n",
"Channel": 1,
"UseFetch": true,
"QueryMode": "Combined"
},
"Daq": {
"UseMock": false,
"AutoConnect": true,
"LogicalDeviceId": 0,
"ChannelCount": 4,
"InputRange": "PlusMinus5V",
"ClockDivider": 1000,
"PreTriggerMs": 10,
"PostTriggerMs": 40,
"Channels": [
{ "PhysicalChannel": 0, "Role": "OutputVoltage", "Name": "输出电压", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": true },
{ "PhysicalChannel": 1, "Role": "OutputCurrent", "Name": "输出电流", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": true },
{ "PhysicalChannel": 2, "Role": "InputVoltage", "Name": "输入电压", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": true },
{ "PhysicalChannel": 3, "Role": "InputCurrent", "Name": "输入电流", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": true },
{ "PhysicalChannel": 4, "Role": "Unconfigured", "Name": "CH4", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": false },
{ "PhysicalChannel": 5, "Role": "Unconfigured", "Name": "CH5", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": false },
{ "PhysicalChannel": 6, "Role": "Unconfigured", "Name": "CH6", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": false },
{ "PhysicalChannel": 7, "Role": "Unconfigured", "Name": "CH7", "Scale": 1.0, "Offset": 0.0, "IsCalibrated": false }
]
}
},
"Storage": {
"ProjectsRoot": "%LOCALAPPDATA%\\SSPCTester\\Projects"
},
"Report": {
"SavePath": "%LOCALAPPDATA%\\SSPCTester\\Reports",
"Format": "Pdf"
},
"Serilog": {
"MinimumLevel": {
"Default": "Information"
},
"WriteTo": [
{ "Name": "Debug" },
{
"Name": "File",
"Args": {
"path": "%LOCALAPPDATA%\\SSPCTester\\Logs\\app-.log",
"rollingInterval": "Day",
"retainedFileCountLimit": 7
}
}
]
}
}