04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A. CRBasic Programming Instructions<br />

TimeUntilTransmit<br />

The TimeUntilTransmit instruction returns the time remaining, in seconds, before<br />

communication with the host datalogger.<br />

Syntax<br />

TimeUntilTransmit<br />

Table 119. Asynchronous-Port<br />

Baud Rates<br />

-nnnn (autobaud 1 starting at nnnn)<br />

0 (autobaud starting at 9600)<br />

300<br />

1200<br />

4800<br />

9600 (default)<br />

19200<br />

38400<br />

57600<br />

115200<br />

1 autobaud: measurements are mode on the<br />

communications signal and the baud rate is<br />

determined by the <strong>CR1000</strong>.<br />

CRBasic Example 71.<br />

For I = 1 to 3<br />

GetVariables(ResultCode,….)<br />

If ResultCode = 0 Exit For<br />

Next<br />

Retries in PakBus Communications.<br />

A.13 Variable Management<br />

ArrayIndex<br />

Returns the index of a named element in an array.<br />

Syntax<br />

ArrayIndex(Name)<br />

ArrayLength<br />

Returns the length of a variable array. In the case of variables of type String, the<br />

total number of characters that the array of strings can hold is returned.<br />

Syntax<br />

ArrayLength(Variable)<br />

Encryption<br />

Encrypts / decrypts a message (string variable) shared between two devices.<br />

Syntax<br />

Result = Encryption(Dest, Source, SourceLen, Key, Action)<br />

514

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!