SmartWAV2-SerialMode_R1
SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 98
1: All of the requested Bytes to Read have
been successfully read from the file data,
then the next parameters are equal:
Bytes to Read == Successfully Read Bytes
*All of the received data bytes are valid file data.
2: Not all of the requested Bytes to Read
could be successfully read from the file data,
the cause may be an error or the end of file
data has been reached, in this case the
processor fills/complete with 0x00 (hex) NULL
bytes until the Bytes to Read parameter is
completed. In this scenario the next
parameters are not equal:
Bytes to Read > Successfully Read Bytes
*From the received data bytes, the Successfully
Read Bytes parameter indicates the valid data, the
complementary received data are dumb filled 0x00
(hex) NULL bytes.
The returned Successfully Read bytes
parameter should always be checked to
ensure that the complete / part of the
received data bytes are valid.
The current File Pointer value will be
increased by the number of Successfully
Read bytes from the last pointer position.
A file must be already opened/allocated in
the selected workspace for this command to
work.