A.11 serial input / output – Campbell Scientific CR3000 Micrologger User Manual
Page 512

Appendix A. CRBasic Programming Instructions
512
SubMenu / EndSubMenu
Define the beginning and ending of a second‐level menu for a custom menu.
Syntax:
DisplayMenu("MenuName", 100)
SubMenu("MenuName")
[menu definition]
EndSubMenu
EndMenu
A.11 Serial Input / Output
Read More! See Serial I/O
(p. 205).
MoveBytes
Moves binary bytes of data into a different memory location when translating
big‐endian to little‐endian data.
Syntax
MoveBytes(Destination, DestOffset, Source, SourceOffset,
NumBytes)
SerialBrk
Sends a break signal with a specified duration to a CR3000 serial port.
Syntax
SerialBrk(Port, Duration)
SerialClose
Closes a communications 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 communications 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)