beautypg.com

A.5 measurement instructions, A.5.1 diagnostics – Campbell Scientific CR3000 Micrologger User Manual

Page 485

background image

Appendix A. CRBasic Programming Instructions

485

 

SemaphoreGet 
Acquires semaphore

 (p. 467) 

1‐3 to avoid resource conflicts. 

Syntax 

SemaphoreGet()

SemaphoreRelease 
Releases semaphore

 (p. 467) 

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. 512)

and Serial I/O

(p. 205).

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 CR3000 CPU and Task memory and store the results in a 
variable array. 

Syntax 

MemoryTest(Dest)