Programming with CRBasic

The Spectrum is supported by these CRBasic instructions:

  • CPIAddModule() – can be used to programatically configure the module.

  • CDM_VoltFilt() – used to pass individual voltage measurements for each channel on a Spectrum to the data logger CPU at the scan interval.

  • CDM_BridgeFilt() – used to make a strain gauge measurement on the Spectrum Module. The mV/Volt output from CDM_BridgeFilt can be converted into microstrain (με) with the StrainCalc() instruction or with the FieldCalStrain() instruction and the LoggerNet Calibration Wizard.

  • CDM_FFT_Filt() – passes an entire SPECTRUM for each channel to the data logger CPU at the scan interval.

  • FFTSample() – stores the current spectral components of a source signal.

Downloadable CRBasic program examples demonstrating the application of these instructions are available at: www.campbellsci.com/downloads/spectrum-example-programs .

NOTE:

When using a CPI or EPI device, improve data logger performance by adjusting the CRBasic SCAN() BufferOption to approximately 400 for networks operating slower than 10 Hz and 1500 for networks faster than 10 Hz. This allocates extra memory for the data logger to process incoming data while handling other tasks.