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 />

7.8 Programming Resource Library<br />

This library of notes and CRBasic code addresses a narrow selection of <strong>CR1000</strong><br />

applications. Consult a <strong>Campbell</strong> <strong>Scientific</strong> applications engineer if other<br />

resources are needed.<br />

7.8.1 Calibration Using FieldCal() and FieldCalStrain()<br />

Calibration increases accuracy of a sensor by adjusting or correcting its output to<br />

match independently verified quantities. Adjusting a sensor's output signal is<br />

preferred, but not always possible or practical. By using the FieldCal() or<br />

FieldCalStrain() instruction, a linear sensor output can be corrected in the<br />

<strong>CR1000</strong> after the measurement by adjusting the multiplier and offset.<br />

When included in the <strong>CR1000</strong> CRBasic program, FieldCal() and<br />

FieldCalStrain() can be engaged through a support software calibration wizard (p.<br />

449). Help for using the wizard is available in the software. A more arcane<br />

procedure can be executed though the <strong>CR1000</strong>KD Keyboard / Display Display or<br />

the numeric monitor in any version of datalogger support software. The numeric<br />

monitor procedure is used in the examples below to clearly illustrate the workings<br />

of the calibration functions.<br />

7.8.1.1 CAL Files<br />

Calibration data are stored automatically, usually on the <strong>CR1000</strong> CPU: drive, in<br />

CAL files. These data become the source for calibration factors when requested<br />

by the LoadFieldCal() instruction. A CAL file is created automatically on the<br />

same <strong>CR1000</strong> memory drive and given the same name (with .cal extension) as the<br />

program that creates and uses it. For example, the CRBasic program file<br />

CPU:MyProg.cr1 generates the CAL file CPU:MyProg.cal.<br />

CAL files are created if a program using FieldCal() or FieldCalStrain() does not<br />

find an existing, compatible CAL file. Files are updated with each successful<br />

calibration with new multiplier and offset factors. Only if the user creates a datastorage<br />

output table with the SampleFieldCal() instruction will a calibration<br />

history be recorded.<br />

Note CAL files created by FieldCal() and FieldCalStrain() differ from files<br />

created by the CalFile() instruction (File Management (p. 515) ).<br />

7.8.1.2 CRBasic Programming<br />

Field calibration functionality is utilized through either:<br />

• FieldCal() — the principal instruction used for non-strain gage type sensors.<br />

For introductory purposes, use of one FieldCal() instruction and a unique set<br />

of FieldCal() variables for each sensor to be calibrated is recommended. Use<br />

of variable arrays is permitted for more advanced applications.<br />

or,<br />

• FieldCalStrain() — the principal instruction used for strain gages measuring<br />

microstrain. Use of one FieldCalStrain() instruction and a unique set of<br />

FieldCalStrain() variables for each sensor to be calibrated is recommended.<br />

Use of variable arrays is permitted for more advanced applications,<br />

151

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

Saved successfully!

Ooh no, something went wrong!