2 crbasic – Campbell Scientific 4WFB120, 4WFB350, 4WFB1K 4-Wire Full Bridge Terminal Input Module User Manual
Page 17
4WFB120, 4WFB350, 4WFB1K 4 Wire Full Bridge Terminal Input Modules
11: IF (X<=>F) (P89)
;Check for last pass through loop
1: 5
X Loc [ Count ]
;to set output flag
2: 3
>=
3: 5
F
4: 10
Set Output Flag High
12: Set Active Storage Area (P80)
;Direct averaged "zero" reading
1: 3
Input
Storage
;to input storage
2: 2
Array ID or Loc [ mVperV_0 ]
13: Average (P71)
1: 1
Reps
2: 1
Loc [ mVperV ]
14: If Flag/Port (P91)
;When average is calculated,
1: 10
Do if Output Flag is High (Flag 0) ;also send it to Final Storage
2: 10
Set Output Flag High
15: Set Active Storage Area (P80)
;Direct Output to Final Storage
1: 1
Final
Storage
2: 11
Array
ID
;set Array ID = 11 for zero data
16: Real Time (P77)
1: 110
Day,Hour/Minute
17: Sample (P70)
1: 1
Reps
2: 2
Loc [ mVperV_0 ]
18: End (P95)
19: End (P95)
End Program
5.2 CRBasic
Dataloggers that use CRBasic include our CR800, CR850, CR1000, CR3000,
CR5000, and CR9000(X). CRBasic uses the StrainCalc Instruction for
calculating strain from the output of different full bridge configurations:
StrainCalc(Dest,Reps,Source,BrZero,BrConfig,GageFactor,PoissonRatio)
Source is the variable holding the current measurement, BrZero is the zero
measurement; this instruction uses the results of the full bridge measurement
instruction (multiplier=1, offset=0, mV/V) directly. The code for the Bridge
Configuration used with the 4WFB module is -1. Enter the actual gage factor
for GageFactor. Enter 0 for the Poisson ratio parameter which is not used with
this bridge configuration.
13