4.1 GRANITE 9/10 program example
The GRANITE 9 and GRANITE 10 require the use of an analog input module, such as the
VOLT 108, when making a half-bridge measurement.
CRBasic Example 1: GRANITE 9/10 3-wire half bridge example
'3-wire half bridge example
'GRANITE 9 and GRANITE 10 data loggers (with a VOLT 108)
'Declare Variables and Units
Public
Temp_C_3wire
Public
Rs_R0
'Define Data Tables
DataTable
(Hourly,True,-1)
DataInterval
(0,60,Min,10)
Average
(1,Temp_C_3wire,IEEE4,False)
EndTable
'Main Program
BeginProg
'Configure the VOLT 108 Module and assign it CPI address 'C1'
CPIAddModule
(VOLT108,10,
" "
,C1)
'Main Scan
Scan
(5,Sec,1,0)
'Half Bridge, 3-wire measurements on the VOLT 108
CDM_BrHalf3W
(VOLT108,C1,Rs_R0,1,mV1000,1,1,1,3200,True,500,60,1,0)
'PRT temperature calculation
PRTCalc
(Temp_C_3wire,1,Rs_R0,0,1.0,0)
'Call Data Tables and Store Data
CallTable
Hourly
NextScan
EndProg
3WHB10K 3-Wire Half Bridge Terminal Input Module
5