Campbell Scientific 4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules User Manual
Page 30
4WFBS120, 4WFBS350, 4WFBS1K 4 Wire Full Bridge Terminal Input Modules (TIM)
BeginProg
'Program begins here
GF(1) = 2.1
:
GF(2) = 2.2
:
GF(3) = 2.3
'Initialize gauge factors for Strain( )
LeadLength(1) = 1.25
' load lead lengths (100s of feet)
LeadLength(2) = 1.50
LeadLength(3) = 2.00
LeadRper100ft
=
2.5
'24 gauge copper wire lead R is 0.025 ohms/ft
Gauge_R = 350
' Load Strain gauge Resistance
For
I = 1
To
3
' Loop through calculate the adjusted gauge factors
Lead_R(I) = LeadLength(I) * LeadRper100ft
GF_Adjusted(I) = GF(I) * (Gauge_R/(Gauge_R + Lead_R(I)))
Next
I
ZReps = 3 : ZIndex = 1
‘initialize cal reps and index pointer
LoadFieldCal
(True)
‘Load prior calibration factors
Scan
(10,mSec,100,0)
'Scan once every 10 mSecs, non-burst
FieldCalStrain(
10,StrainMvperV(),ZReps,0,ZeromV_V(),ModeVar,0,ZIndex,1,0,Strain())
BrFull
(StrainMvperV(),3,mV50,4,1,5,7,1,5000,True,True,70,100,1,0)
StrainCalc
(Strain(),3,StrainMvperV(),ZeromV_V(),-1,GF(),0)
'Strain calculation
CallTable
STRAIN
CallTable
Calib
Next
Scan
'Loop up for the next scan
SlowSequence
'Slow sequence Scan to perform temperature
Scan
(1,Sec,0,0)
' compensation on DAQ
Calibrate
'Corrects ADC offset and gain
BiasComp
'Corrects ADC bias current
Next
Scan
EndProg
'Program ends here
24