Doc
#
E149701
B-48
B: Modbus Map and Retrieving Logs
Electro
Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
Electro
Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
rms_ia = BitConverter.ToUInt16(new byte[2] { waveform_capture[14],
waveform_capture[15] }, 0);
...
calibration_va = BitConverter.ToUInt16(new byte[2] { waveform_cap-
ture[24], waveform_capture[25] }, 0);
calibration_ia = BitConverter.ToUInt16(new byte[2] { waveform_cap-
ture[26], waveform_capture[27] }, 0);
...
//
CHANNEL BLOCK PARSING - predefined function
public static List<int> GetChannelSampleData(byte[] waveform_capture,
int start_byte)
{
int temp;
int begin = star 2; //
skip Channel ID (e.g.
"AN","IA",etc) and get data start
int end = star 4098;
List<int> list = new List<int>();
for (int i = begin; i < end; i += 2)
{
// hi-byte, lo-byte
temp = BitConverter.ToUInt16(new byte[2] { waveform_capture[i], wave-
form_capture[i+1] }, 0);
list.Add(temp);
Summary of Contents for Shark 200
Page 1: ...V 1 24 March 15 2018 ...