CRBasic Example 2: Measuring Settling Time
BeginProg
Scan
(1,Sec,3,0)
BrFull
(PT(1),1,mV2500,1,Vx1,1,2500,False,True, 100,60,1.0,0)
BrFull
(PT(2),1,mV2500,1,Vx1,1,2500,False,True, 200,60,1.0,0)
BrFull
(PT(3),1,mV2500,1,Vx1,1,2500,False,True, 300,60,1.0,0)
BrFull
(PT(4),1,mV2500,1,Vx1,1,2500,False,True, 400,60,1.0,0)
BrFull
(PT(5),1,mV2500,1,Vx1,1,2500,False,True, 500,60,1.0,0)
BrFull
(PT(6),1,mV2500,1,Vx1,1,2500,False,True, 600,60,1.0,0)
BrFull
(PT(7),1,mV2500,1,Vx1,1,2500,False,True, 700,60,1.0,0)
BrFull
(PT(8),1,mV2500,1,Vx1,1,2500,False,True, 800,60,1.0,0)
BrFull
(PT(9),1,mV2500,1,Vx1,1,2500,False,True, 900,60,1.0,0)
BrFull
(PT(10),1,mV2500,1,Vx1,1,2500,False,True,1000,60,1.0,0)
BrFull
(PT(11),1,mV2500,1,Vx1,1,2500,False,True,1100,60,1.0,0)
BrFull
(PT(12),1,mV2500,1,Vx1,1,2500,False,True,1200,60,1.0,0)
BrFull
(PT(13),1,mV2500,1,Vx1,1,2500,False,True,1300,60,1.0,0)
BrFull
(PT(14),1,mV2500,1,Vx1,1,2500,False,True,1400,60,1.0,0)
BrFull
(PT(15),1,mV2500,1,Vx1,1,2500,False,True,1500,60,1.0,0)
BrFull
(PT(16),1,mV2500,1,Vx1,1,2500,False,True,1600,60,1.0,0)
BrFull
(PT(17),1,mV2500,1,Vx1,1,2500,False,True,1700,60,1.0,0)
BrFull
(PT(18),1,mV2500,1,Vx1,1,2500,False,True,1800,60,1.0,0)
BrFull
(PT(19),1,mV2500,1,Vx1,1,2500,False,True,1900,60,1.0,0)
BrFull
(PT(20),1,mV2500,1,Vx1,1,2500,False,True,2000,60,1.0,0)
CallTable
Settle
NextScan
EndProg
The first six measurements are shown in the following table:
Table 17-2: Example data from Measuring Settling Time Program
Timestamp
Record
Number
PT(1)
Smp
PT(2)
Smp
PT(3)
Smp
PT(4)
Smp
PT(5)
Smp
PT(6)
Smp
8/3/2017 23:34
0
0.03638599 0.03901386 0.04022673 0.04042887 0.04103531 0.04123745
8/3/2017 23:34
1
0.03658813 0.03921601 0.04002459 0.04042887 0.04103531
0.0414396
8/3/2017 23:34
2
0.03638599 0.03941815 0.04002459 0.04063102 0.04042887 0.04123745
8/3/2017 23:34
3
0.03658813 0.03941815 0.03982244 0.04042887 0.04103531 0.04103531
8/3/2017 23:34
4
0.03679027 0.03921601 0.04022673 0.04063102 0.04063102 0.04083316
Each trace in the following image contains all twenty
PT()
mV/V values (left axis) for a given
record number and an average value showing the measurements as percent of final reading
(right axis). The reading has settled to 99.5% of the final value by the fourteenth measurement,
17. Tips and troubleshooting
145