Specifications
Section 4. Sensor Support
4-12
Reviewing Section 9 CR1000 Programming may help in understanding the
CRBASIC code in
the example.
EXAMPLE 4.2-1. CRBASIC Code: Measuring Settling Time
'CR1000 Series Datalogger
'Program to measure the settling time of a sensor
'measured with a differential voltage measurement
Public PT(20) 'Variable to hold the measurements
DataTable (Settle,True,100)
Sample (20,PT(),IEEE4)
EndTable
BeginProg
Scan (1,Sec,3,0)
BrFull (PT(1),1,mV7_5,1,Vx1,1,2500,True ,True ,100,250,1.0,0)
BrFull (PT(2),1,mV7_5,1,Vx1,1,2500,True ,True ,200,250,1.0,0)
BrFull (PT(3),1,mV7_5,1,Vx1,1,2500,True ,True ,300,250,1.0,0)
BrFull (PT(4),1,mV7_5,1,Vx1,1,2500,True ,True ,400,250,1.0,0)
BrFull (PT(5),1,mV7_5,1,Vx1,1,2500,True ,True ,500,250,1.0,0)
BrFull (PT(6),1,mV7_5,1,Vx1,1,2500,True ,True ,600,250,1.0,0)
BrFull (PT(7),1,mV7_5,1,Vx1,1,2500,True ,True ,700,250,1.0,0)
BrFull (PT(8),1,mV7_5,1,Vx1,1,2500,True ,True ,800,250,1.0,0)
BrFull (PT(9),1,mV7_5,1,Vx1,1,2500,True ,True ,900,250,1.0,0)
BrFull (PT(10),1,mV7_5,1,Vx1,1,2500,True ,True ,1000,250,1.0,0)
BrFull (PT(11),1,mV7_5,1,Vx1,1,2500,True ,True ,1100,250,1.0,0)
BrFull (PT(12),1,mV7_5,1,Vx1,1,2500,True ,True ,1200,250,1.0,0)
BrFull (PT(13),1,mV7_5,1,Vx1,1,2500,True ,True ,1300,250,1.0,0)
BrFull (PT(14),1,mV7_5,1,Vx1,1,2500,True ,True ,1400,250,1.0,0)
BrFull (PT(15),1,mV7_5,1,Vx1,1,2500,True ,True ,1500,250,1.0,0)
BrFull (PT(16),1,mV7_5,1,Vx1,1,2500,True ,True ,1600,250,1.0,0)
BrFull (PT(17),1,mV7_5,1,Vx1,1,2500,True ,True ,1700,250,1.0,0)
BrFull (PT(18),1,mV7_5,1,Vx1,1,2500,True ,True ,1800,250,1.0,0)
BrFull (PT(19),1,mV7_5,1,Vx1,1,2500,True ,True ,1900,250,1.0,0)
BrFull (PT(20),1,mV7_5,1,Vx1,1,2500,True ,True ,2000,250,1.0,0)
CallTable Settle
NextScan
EndProg
The first six measurements are shown in TABLE 4.2-8. Each trace in FIGURE
4
.2-2. Settling Time for Pressure TransducerFIGURE 4.2-2 contains all 20
PT()
values for a given record number, along with an averaged value showing
the measurements as percent of final reading. The reading has settled to 99.5%
of the final value by the fourteenth measurement, PT(14). This is a suitable
accuracy for the application, so a settling time of 1400 μs is determined to be
adequate.