beautypg.com

A.4.2 advanced program controls – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 460

background image

Appendix A. CRBasic Programming Instructions

460 

 

 

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

SemaphoreGet 
Acquires semaphore

 (p. 442

1‐3 to avoid resource conflicts. 

Syntax 

SemaphoreGet()

SemaphoreRelease 
Releases semaphore

 (p. 442

previously acquired with SemaphoreGet (). 

Syntax 

SemaphoreRelease()