Doc
#
E149701
B-53
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
sample_rate = waveform_capture[2];
trigger_type= waveform_capture[4];
trigger_capture_num = waveform_capture[5];
trigger_cycle_tag = BitConverter.ToUInt16(new byte[2] { waveform_cap-
ture[6], waveform_capture[7] }, 0);
The trigger source value acquired from the waveform capture header must be parsed
to get the specific trigger condition error string (for example, voltage surge or voltage
sag).
bool deltaHookup; // hookup flag
...
int[] trigger_state = new int[16]; // to
represent 16 individual "bits"
Array.Clear(trigger_state, 0, trigger_state.Length); //
set all "bits" to 0
// set the individual trigger_state bit flags using trigger_-
source from waveform capture
for (int i = 0; i < trigger_state.Length; ++i)
{
trigger_state[i] = (trigger_source / (2 ^ i)) & 1;//
remember hi-byte+lo-byte order
}
...
String triggered_str = "";
for (int i = 0; i < trigger_state.Length; ++i)
{
Summary of Contents for Shark 200
Page 1: ...V 1 24 March 15 2018 ...