Campbell Scientific CR1000KD CR800 and CR850 Measurement and Control Systems - Page 161
CRBasic Example 30., Multiplier, Only Demonstration Program
View all Campbell Scientific CR1000KD manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 161 highlights
Section 7. Installation Scan(100,mSec,0,0) 'Simulate measurement by exciting channel VX1/EX1 ExciteV(Vx1,SignalmV,0) 'Make the calibrated measurement VoltSE(WaterFlow,1,mV2500,6,1,0,250,Multiplier,Offset) 'Perform a calibration if CalMode = 1 FieldCal(2,WaterFlow,1,Multiplier,Offset,CalMode,KnownFlow,1,30) 'If there was a calibration, store it into a data table CallTable(CalHist) NextScan EndProg 7.8.1.5.5 Two-Point Slope Only (Option 3) Some measurement applications do not require determination of offset. Wave form analysis, for example, may only require relative data to characterize change. Case: A soil-water sensor is to be used to detect a pulse of water moving through soil. To adjust the sensitivity of the sensor, two soil samples, with volumetric water contents of 10% and 35%, will provide two known points. The following procedure sets the sensitivity of a simulated soil water-content sensor. 1. CRBasic example FieldCal Multiplier-Only Demonstration Program (p. 161) to the CR800. 2. To simulate the soil-water sensor, place a jumper wire between channels VX1/EX1 and SE6 (3L). 3. Simulate deployment-calibration conditions (output @ 10% = 175 mV, output @ 35% = 700 mV) in two stages. a. Set variable mV to 175. Set variable KnownWC to 10.0. b. Start the calibration by setting variable CalMode = 1. c. When CalMode increments to 3, set variable mV to 700. Set variable KnownWC to 35. d. Resume the calibration by setting variable CalMode = 4 4. When variable CalMode increments to 6, the calibration is complete. Calibrated multiplier is 0.0476. CRBasic Example 30. FieldCal() Multiplier‐Only Demonstration Program 'Jumper VX1/EX1 to SE6(3L) to simulate a sensor Public mV Public KnownWC Public CalMode 'Excitation mV Output 'Known Water Content 'Calibration Trigger Public Multiplier Public Offset Public RelH2OContent 'Sensitivity 'Offset (Starts at zero, not changed) 'Relative Water Content 161