![Campbell TempVue 10 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/campbell/tempvue-10/tempvue-10_product-manual_3945452026.webp)
CRBasic Example 1: CR1000X program for TempVue 10 with 4-wire configuration
'Measure the TempVue 10resistance
BrHalf4W
(TempVUE10RsR0,1,mV200C,mV200C,1,VX1,1,2100,True,True,50000,60,1,0)
'Convert the resistance to temperature in Deg Celsius
PRTCalc
(TempVUE10T_C,1,TempVUE10RsR0,1,1,DUT)
'Call Data Tables and Store Data
CallTable
Daily
CallTable
Hourly
NextScan
EndProg
CRBasic Example 2: CR1000X program for TempVue 10 with 2-wire configuration
'CR1000X
'
'This program measures the resistance using the BrHalf instruction, calculating
'for Rs, calculates the ratio of Rs/R0, and then converts the resistance ratio
'to temperature using the PRTCalc instruction.
'Calibration Offset Value
'Note: This is NOT the DUT offset value on the calibration certificate.
'That calibration is only valid for the recommended 4-wire configuration.
'This offset value should be determined by the user from a calibration
'done with the 2-wire configuration and a reliable reference sensor.
'Caution: Using a 2-wire configuration without a calibration offset could
'result in inaccuracies greater than 1 degree Celsius.
Const
Cal_Offset = 0.0
Const
Rf = 10100
'Resistance of Rf
Const
R0 = 100
'Resistance of the PRT at 0 Deg Celsius
'Declare Variables and Units
Public
BattV
'CR1000X battery voltage
Public
PTemp_C
'CR1000X Panel Temperature
Public
X
'TempVue 10 resistance measurement
Public
Rs
'Resistance of PT100
Public
TempVue10RsR0
'Ratio of Rs/R0
Public
TempVue10T_C
'temperature measurement
Units
BattV = Volts
Units
PTemp_C = Deg C
Units
TempVue10T_C = Deg C
TempVue 10 PT-100 Class A, Precision Air Temperature Sensor
24