Campbell Scientific CR6 CR6 Measurement and Control System - Page 320
CRBasic Example 65., Measuring Settling Time
![]() |
View all Campbell Scientific CR6 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 320 highlights
Section 8. Operation steady-state conditions so changes in measured voltage are attributable to settling time rather than changes in pressure. Reviewing the section Programming (p. 126) may help in understanding the CRBasic code in the example. The first six measurements are shown in table First Six Values of Settling-Time Data (p. 321). Each trace in figure Settling Time for Pressure Transducer (p. 321) contains all twenty PT() mV/V values (left axis) for a given record number, along with 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, which is contained in variable PT(14). This is suitable accuracy for the application, so a settling time of 1400 µs is determined to be adequate. CRBasic Example 65. Measuring Settling Time ' the measurement of settling time using a single 'measurement instruction multiple times in succession. In this case, the program measures 'the temperature of the CR6 wiring panel. Public RefTemp 'Declare variable to receive instruction BeginProg Scan(1,Sec,3,0) PanelTemp(RefTemp, 250) 'Instruction to make measurement NextScan EndProg measures 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,mV200,1,U11,2500,True,True,100,15000 ,1.0,0) BrFull(PT(2),1,mV200,1,U11,2500,True,True,200,15000 ,1.0,0) BrFull(PT(3),1,mV200,1,U11,2500,True,True,300,15000 ,1.0,0) BrFull(PT(4),1,mV200,1,U11,2500,True,True,400,15000 ,1.0,0) BrFull(PT(5),1,mV200,1,U11,2500,True,True,500,15000 ,1.0,0) BrFull(PT(6),1,mV200,1,U11,2500,True,True,600,15000 ,1.0,0) BrFull(PT(7),1,mV200,1,U11,2500,True,True,700,15000 ,1.0,0) BrFull(PT(8),1,mV200,1,U11,2500,True,True,800,15000 ,1.0,0) BrFull(PT(9),1,mV200,1,U11,2500,True,True,900,15000 ,1.0,0) BrFull(PT(10),1,mV200,1,U11,2500,True,True,1000,15000 ,1.0,0) BrFull(PT(11),1,mV200,1,U11,2500,True,True,1100,15000 ,1.0,0) BrFull(PT(12),1,mV200,1,U11,2500,True,True,1200,15000 ,1.0,0) BrFull(PT(13),1,mV200,1,U11,2500,True,True,1300,15000 ,1.0,0) BrFull(PT(14),1,mV200,1,U11,2500,True,True,1400,15000 ,1.0,0) 320
![](/manual_guide/products/campbell-scientific-cr6-cr6-measurement-control-a476969/320.png)