A.13 variable management – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 492

Appendix A. CRBasic Programming Instructions
492
TimeUntilTransmit
The TimeUntilTransmit instruction returns the time remaining, in seconds, before
communication with the host datalogger.
Syntax
TimeUntilTransmit
Table 115. Asynchronous-Port
Baud Rates
-nnnn (autobaud
1
starting at nnnn)
0 (autobaud starting at 9600)
300
1200
4800
9600 (default)
19200
38400
57600
115200
1
autobaud: measurements are mode on the
communications signal and the baud rate is
determined by the CR800.
CRBasic Example 70. Retries in PakBus Communications.
For
I = 1
to
3
GetVariables
(ResultCode,….)
If
ResultCode = 0
Exit
For
Next
A.13 Variable Management
ArrayIndex
Returns the index of a named element in an array.
Syntax
ArrayIndex(Name)
ArrayLength
Returns the length of a variable array. In the case of variables of type String, the
total number of characters that the array of strings can hold is returned.
Syntax
ArrayLength(Variable)
Encryption
Encrypts / decrypts a message (string variable) shared between two devices.
Syntax
Result = Encryption(Dest, Source, SourceLen, Key, Action)