4 self measurements, Battery (dest, battopt), Moduletemp (dest, reps, aslot, integ) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 239: Calibrate, Biascomp, Instructiontimes (dest)

Section 7. Measurement Instructions
7-15
7.4 Self Measurements
Battery (Dest, BattOpt)
This instruction reads the voltage or current of the battery powering the system
or the voltage of the backup lithium battery. The units for battery voltage are
volts; current is in milliamperes.
ModuleTemp (Dest, Reps, ASlot, Integ)
This instruction measures the temperature, in
°C, of the specified CR9050(E),
CR9051E, or CR9058E input module's RTD.
Parameter
Enter
BATTERY, MODULETEMP PARAMETERS
Dest
Var or Array
The Variable in which to store the results of the instruction. When Reps are used the results are stored in
an array with the variable name. An array must be dimensioned to have elements for all the Reps.
BattOpt
The code indicating the desired measurement.
Constant
Code Measurement
0
Main battery voltage, volts
1
Main battery current, milliamperes
2
Memory backup battery (lithium), volts
Reps
Constant
The number of repetitions for the measurement or instruction. If reps is greater than 1, the first element
of the Dest array will hold the temperature for the module in the specified Aslot and the modules'
temperatures in the sequentially following slots will be loaded into the corresponding elements of the
Dest array.
ASlot
Constant
The number of the slot that holds the first Analog Input Module to be used for the measurement.
Integ
Constant
The integration time in microseconds for each of the channels measured (10 microseconds resolution).
The CR9000X will repeat measurements every 10 microseconds throughout the integration interval (with
the appropriate Delay at the beginning and between RevDiff and RevEx if used) and output the average.
The random noise level is decreased by the square root of the number of measurements made. An
integration time of one 60 Hz cycle (16,670 microseconds) will cancel 60 Hz noise. Enter 0 for no
integration and the fastest measurements. See Section 3.1.1.3 Integration for more information.
Calibrate
The Calibration instruction is used to force calibration of the analog channels
under program control.
See the Calibrate topic in Section 9.2 Data Logger Status/Control.
BiasComp
The BiasComp instruction adjusts the input bias current compensation.
See the BiasComp topic in Section 9.2 Data Logger Status/Control.
InstructionTimes (Dest)
The InstructionTimes instruction returns the execution time of each
instruction in the program.
The InstructionTimes instruction loads the Dest array with execution times
for each instruction in the program (in microseconds). InstructionTimes must
appear before the BeginProg statement in the program.