Appendix A. CRBasic Programming Instructions
460
WaitDigTrig
Triggersameasurementscanfromanexternaldigitaltrigger.
Syntax
WaitDigTrig(ControlPort, Option)
While/Wend
Executeaseriesofstatementsinaloopaslongasagivenconditionistrue.
Syntax
While [condition]
[StatementBlock]
Wend
A.4.2 Advanced Program Controls
Data/Read/Restore
DefinesalistofFloatconstantstoberead(usingRead)intoavariablearraylater
intheprogram.
Syntax
Data [list of constants]
Read [VarExpr]
Restore
DataLong/Read/Restore
DefinesalistofLongconstantstoberead(usingRead)intoavariablearraylater
intheprogram.
Syntax
DataLong [list of constants]
Read [VarExpr]
Restore
Read
ReadsconstantsfromthelistdefinedbyDataorDataLongintoavariablearray.
Syntax
Read [VarExpr]
Restore
ResetsthelocationoftheReadpointerbacktothefirstvalueinthelistdefined
byDataorDataLong.
Syntax
Restore
SemaphoreGet
Acquiressemaphore
(p.442)1‐3toavoidresourceconflicts.
Syntax
SemaphoreGet()
SemaphoreRelease
Releasessemaphore
(p.442)previouslyacquiredwithSemaphoreGet().
Syntax
SemaphoreRelease()