Appendix A. CRBasic Programming Instructions
A.12 Serial Input / Output
Read More See Serial I/O (p. 245).
MoveBytes
Moves binary bytes of data into a different memory location when translating big-
endian to little-endian data. See the appendix Endianness
(p. 643).
Syntax
MoveBytes(Destination, DestOffset, Source, SourceOffset,
NumBytes)
SerialBrk
Sends a break signal with a specified duration to a CR1000 serial port.
Syntax
SerialBrk(Port, Duration)
SerialClose
Closes a communication port that was previously opened by SerialOpen().
Syntax
SerialClose(ComPort)
SerialFlush
Clears any characters in the serial input buffer.
Syntax
SerialFlush(ComPort)
SerialIn
Sets up a communication port for receiving incoming serial data.
Syntax
SerialIn(Dest, ComPort, TimeOut, TerminationChar,
MaxNumChars)
SerialInBlock
Stores incoming serial data. This function returns the number of bytes received.
Syntax
SerialInBlock(ComPort, Dest, MaxNumberBytes)
SerialInChk
Returns the number of characters available in the datalogger serial buffer.
Syntax
SerialInChk(ComPort)
583