![Campbell CS240 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/campbell/cs240/cs240_product-manual_3915813017.webp)
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. 22). Programming basics for CRBasic data loggers are
provided in the following section. Complete program examples for select CRBasic data loggers
can be found in
(p. 23)..
If applicable, please read
(p. 16) and
(p. 16) prior
to programming your data logger.
7.4.1 CS240 programming
The CS240 program needs to measure the resistance of the CS240 then convert that resistance
measurement to temperature.
7.4.1.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
(CS240X,1,mV200,mV200,U1,U5,1,350,True,True,0,60,1,0)
A typical
BrHalf()
instruction is:
BrHalf
(CS240X,1,mV200,U7,U3,1,350,True,0,60,1,0)
Use a multiplier of 1.0 and offset of 0.0 in the instructions.
CS240 and CS240DM PT-1000 Class A, Back-of-Module Temperature Sensors
14