04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A. CRBasic Programming Instructions<br />

A.4.2 Advanced Program Controls<br />

TriggerSequence<br />

Used with WaitTriggerSequence to control the execution of code within a slow<br />

sequence.<br />

Syntax<br />

TriggerSequence(SequenceNum, Timeout)<br />

WaitTriggerSequence<br />

Used with TriggerSequence to control the execution of code within a slow<br />

sequence.<br />

Syntax<br />

WaitTriggerSequence<br />

WaitDigTrig<br />

Triggers a measurement scan from an external digital trigger.<br />

Syntax<br />

WaitDigTrig(ControlPort, Option)<br />

While / Wend<br />

Execute a series of statements in a loop as long as a given condition is true.<br />

Syntax<br />

While [condition]<br />

[StatementBlock]<br />

Wend<br />

Data / Read / Restore<br />

Defines a list of Float constants to be read (using Read) into a variable array later<br />

in the program.<br />

Syntax<br />

Data [list of constants]<br />

Read [VarExpr]<br />

Restore<br />

DataLong / Read / Restore<br />

Defines a list of Long constants to be read (using Read) into a variable array later<br />

in the program.<br />

Syntax<br />

DataLong [list of constants]<br />

Read [VarExpr]<br />

Restore<br />

Read<br />

Reads constants from the list defined by Data or DataLong into a variable array.<br />

Syntax<br />

Read [VarExpr]<br />

Restore<br />

Resets the location of the Read pointer back to the first value in the list defined<br />

by Data or DataLong.<br />

Syntax<br />

Restore<br />

482

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

Saved successfully!

Ooh no, something went wrong!