
9.6.1 Program code
If you use more than one analyzer with a single data logger, or need a non-standard program,
you can write a new program or edit an existing program using CRBasic Editor. See
https://www.campbellsci.com/downloads/vwire-example
for an example program.
The following sections give short descriptions of VWIRE 305 related CRBasic instructions. CRBasic
Editor software Help has full descriptions of these instructions.
9.6.1.1 Pipeline mode
When controlling the VWIRE 305, the data logger automatically runs the CRBasic program in
pipeline mode to synchronize all measurement and control functions on the CPI network. You
can read more about pipeline mode in the data logger manual.
9.6.1.2 VWIRE 305 programming
CDM_VW300Config()
CDM_VW300Config()
sends configuration settings to the VWIRE 305. Place it before the
BeginProg
statement. It does not set the CPI address of the VWIRE 305. The CPI address must
be set with DVW Toolbox.
CDM_VW300Config
(DeviceType, CPIAddress, SysOption, ChanEnable, ResonAmp,
LowFreq, HighFreq, ChanOptions, Mult, Offset, SteinA, SteinB, SteinC, RF_
MeanBins, RF_AmpBins, RF_LowLim, RF_HighLim, RF_Hyst, RF_Form)
CDM_VW300Dynamic()
This instruction captures the dynamic output. Place it inside the main scan of the program.
CDM_VW300Dynamic
(CPIAddress,DestFreq,DestDiag)
CDM_VW300Static()
This instruction captures static frequency, standard deviation of dynamic frequency at 1 Hz, and
temperature of the embedded thermistor or RTD. It is used in the main scan inside an
If
TimeIntoInterval()
conditional statement. Set
TimeIntoInterval()
to capture
static data at 1 Hz.
If TimeIntoInterval
(0,1,Sec)
Then
CDM_VW300Static
(CPIAddress,DestFreq,DestTherm,DestStdDev)
...
EndIf
VWIRE 305
34