A.11 serial input / output – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 487

Appendix A. CRBasic Programming Instructions
487
MenuPick
Creates a list of selectable options that can be used when editing a MenuItem
value.
Syntax:
MenuPick(Item1, Item2, Item3...)
DisplayValue
Defines the name and associated data‐table value or variable for an item in a
custom menu.
Syntax:
DisplayValue("MenuItemName", Expression)
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. 201).
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 CR800 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)