Electro Industries Shark 200 Installation & Operation Manual page 230

Upgradeable fully featured power & energy meter
Hide thumbs Also See for Shark 200:
Table of Contents

Advertisement

the Record Header, Capture and Record Numbers which will leave only the Wave-
form Record Payload (see the table on B-43). You only need to store the timestamp
from the first record, as each of the 26 records have the same timestamp.
4. Copy the record data (record payload) to the output (e.g., an array of byte arrays -
each byte array representing a waveform record) and repeat this stripping process
for all 26 waveform records. Once done, combine all 26 header-stripped records
into a single byte array thus creating the waveform capture:
const uint RECORD_PAYLOAD_SIZE = 962;
const uint MAX_WAVEFORM_CAPTURE_SIZE = 25012;
...
byte[] waveform_capture = new byte[MAX_WAVEFORM_CAPTURE_SIZE];
...
// combine all binary data from waveform records to create waveform cap-
ture
for (int i = 0; i < 26; ++i)
{
waveform_record[i].CopyTo(waveform_capture, RECORD_PAYLOAD_SIZE * i);
}
Here is an example of the beginning of a waveform capture from the above instruc-
tion:
// Snippet starts from header block (address 0x00) and ends some bytes
past first channel block
00000000
01 80 06 00 00 47 02 00
00000010
00 21 00 20 00 22 00 25
00000020
D3 AA 1A F3 FF FF FF FF
...
Electro Industries/GaugeTech
Electro Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
The Leader In Power Monitoring and Smart Grid Solutions
B: Modbus Map and Retrieving Logs
00 00 07 FF 07 4C 00 26
D3 21 19 6C 1C B0 02 64
FF FF FF FF FF FF FF FF
#
Doc
E149701
B-46

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Shark 200t

Table of Contents