beautypg.com

A.4.2 advanced program controls – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 482

background image

Appendix A. CRBasic Programming Instructions

482 

 

 

TriggerSequence 
Used with WaitTriggerSequence to control the execution of code within a slow 
sequence. 

Syntax 

TriggerSequence(SequenceNum, Timeout)

WaitTriggerSequence 
Used with TriggerSequence to control the execution of code within a slow 
sequence. 

Syntax 

WaitTriggerSequence

WaitDigTrig 
Triggers a measurement scan from an external digital trigger. 

Syntax 

WaitDigTrig(ControlPort, Option)

While / Wend  
Execute a series of statements in a loop as long as a given condition is true. 

Syntax 

While

[condition]

[StatementBlock]

Wend

A.4.2 Advanced Program Controls

Data / Read / Restore 
Defines a list of Float constants to be read (using Read) into a variable array later 
in the program. 

Syntax 

Data

[list of constants]

Read

[VarExpr]

Restore

DataLong / Read / Restore 
Defines a list of Long constants to be read (using Read) into a variable array later 
in the program. 

Syntax 

DataLong

[list of constants]

Read

[VarExpr]

Restore

Read 
Reads constants from the list defined by Data or DataLong into a variable array. 

Syntax 

Read [VarExpr]

Restore 
Resets the location of the Read pointer back to the first value in the list defined 
by Data or DataLong. 

Syntax 

Restore