
7.4 Data logger programming
Short Cut is the best source for up-to-date data logger programming code. If your data
acquisition requirements are simple, you can probably create and maintain a data logger
program exclusively with Short Cut. If your data acquisition needs are more complex, the files
that Short Cut creates are a great source for programming code to start a new program or add to
an existing custom program.
NOTE:
Short Cut cannot edit programs after they are imported and edited in CRBasic Editor.
A Short Cut tutorial is available in
(p. 2). If you wish to import Short Cut code into
CRBasic Editor to create or add to a customized program, follow the procedure in
Short Cut code into CRBasic Editor
(p. 16). Programming basics for CRBasic data loggers are
provided in the following section. Complete program examples for select CRBasic data loggers
can be found in
If applicable, please read
(p. 14) and
prior to programming your data logger.
7.4.1 Resistance measurement
CRBasic instructions used to measure resistance are the
BrHalf4W
(4-wire configuration) or
BrHalf
(2-wire configuration). The
BrHalf4W()
instruction reduces cable errors, and the
BrHalf()
instruction uses the fewest input terminals.
A typical
BrHalf4W()
instruction is:
BrHalf4W
(T110PV,1,mV5000,mV5000,1,Vx1,1,2500,True,True,0,60,1.0,0.0)
A typical
BrHalf()
instruction is:
BrHalf
(T110PV,1,mV5000,1,VX1,1,2500,True,0,60,1.0,0.0)
Use a multiplier of 1.0 and offset of 0.0 in the instructions.
7.4.2 Converting resistance measurement to temperature
The Steinhart-Hart equation is used to convert the resistance measurement to temperature.
Temp_C = (1/(A+B*LN(T110C*(LN(T110PV_Res))^3))-273.15
110PV Surface Temperature Probe
12