EasyManua.ls Logo

Shark MP200 - Page 478

Shark MP200
496 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Doc# E166703 E-26
E: 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
Data:
Window Status: 0 (ignore)
Record Index: 0x0D = 13, start at the 14th record.
----------------------------------------------------
Receive: 0110C3510002 (command ok)
NOTES:
• This step manually sets the record index, and is primarily used when an out-of-
order record index is returned on a read (step 6).
• The example assumes that the second window retrieval failed somehow, and we
need to recover by requesting the records starting at index 13 again.
8. For each record in the retrieved window, copy and save the data for later interpre-
tation.
9. Increment Current Index by RecordsPerWindow.
NOTES:
• This is the step that determines how much more of the log we need to retrieve.
• On the first N passes, Records Per Window should be 13 (as computed in step 4),
and the current index should be a multiple of that (0, 13, 26, . . .). This amount will
decrease when we reach the end (see step 10).
• If the current index is greater than or equal to the number of records (in this case
100), then all records have been retrieved; go to step 12. Otherwise, go to step 10
to check if we are nearing the end of the records.
10. If number records - current index < RecordsPerWindow, decrease to match.
NOTES:
• Here we bounds-check the current index, so we don't exceed the records available.

Table of Contents

Related product manuals