04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

CRBasic Example 31.<br />

FieldCalStrain() Calibration Demonstration<br />

'Program to measure quarter bridge strain gage<br />

'Measurements<br />

Public Raw_mVperV<br />

Public MicroStrain<br />

'Variables that are arguments in the Zero Function<br />

Public Zero_Mode<br />

Public Zero_mVperV<br />

'Variables that are arguments in the Shunt Function<br />

Public Shunt_Mode<br />

Public KnownRes<br />

Public GF_Adj<br />

Public GF_Raw<br />

'----------------------------- Tables ----------------------------<br />

DataTable(CalHist,NewFieldCal,50)<br />

SampleFieldCal<br />

EndTable<br />

'//////////////////////////// PROGRAM ////////////////////////////<br />

BeginProg<br />

'Set Gage Factors<br />

GF_Raw = 2.1<br />

GF_Adj = GF_Raw 'The adj Gage factors are used in the calculation of uStrain<br />

'If a calibration has been done, the following will load the zero or<br />

'Adjusted GF from the Calibration file<br />

LoadFieldCal(True)<br />

Scan(100,mSec,100,0)<br />

'Measure Bridge Resistance<br />

BrFull(Raw_mVperV,1,mV25,1,Vx1,1,2500,True ,True ,0,250,1.0,0)<br />

'Calculate Strain for 1/4 Bridge (1 Active Element)<br />

StrainCalc(microStrain,1,Raw_mVperV,Zero_mVperV,1,GF_Adj,0)<br />

'Steps (1) & (3): Zero Calibration<br />

'Balance bridge and set Zero_Mode = 1 in numeric monitor. Repeat after<br />

'shunt calibration.<br />

FieldCalStrain(10,Raw_mVperV,1,0,Zero_mVperV,Zero_Mode,0,1,10,0 ,microStrain)<br />

'Step (2) Shunt Calibration<br />

'After zero calibration, and with bridge balanced (zeroed), set<br />

'KnownRes = to gage resistance (resistance of gage at rest), then set<br />

'Shunt_Mode = 1. When Shunt_Mode increments to 3, position shunt resistor<br />

'and set KnownRes = shunt resistance, then set Shunt_Mode = 4.<br />

FieldCalStrain(13,MicroStrain,1,GF_Adj,0,Shunt_Mode,KnownRes,1,10,GF_Raw,0)<br />

CallTable CalHist<br />

NextScan<br />

EndProg<br />

164

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!