A.5 measurement instructions, A.5.1 diagnostics – Campbell Scientific CR1000 Measurement and Control System User Manual
Page 483

Appendix A. CRBasic Programming Instructions
483
SemaphoreGet
Acquires semaphore
(p. 465)
1‐3 to avoid resource conflicts.
Syntax
SemaphoreGet()
SemaphoreRelease
Releases semaphore
(p. 465)
previously acquired with SemaphoreGet ().
Syntax
SemaphoreRelease()
ShutDownBegin
Begins code to be run in the event of a normal shutdown such as when sending a
new program.
Syntax
ShutDownBegin
ShutDownEnd
Ends code to be run in the event of a normal shutdown such as when sending a
new program.
Syntax
ShutDownEnd
A.5 Measurement Instructions
Read More! For information on recording data from RS-232 and TTL output
sensors, see Serial Input / Output
(p. 509)
and Serial I/O
(p. 200).
A.5.1 Diagnostics
Battery
Measures input voltage.
Syntax
Battery(Dest)
ComPortIsActive
Returns a Boolean value, based on whether or not activity is detected on the
specified COM port.
Syntax
variable = ComPortIsActive(ComPort)
InstructionTimes
Returns the execution time of each instruction in the program.
Syntax
InstructionTimes(Dest)
MemoryTest
Performs a test on the CR1000 CPU and Task memory and store the results in a
variable array.
Syntax
MemoryTest(Dest)