Programming with the AVW200()
instruction
When using the RS-232 (PakBus) or RF (PakBus) protocol, the data logger is programmed using the AVW200()
instruction in CRBasic.
If using SDI-12 to communicate with the SDI12Recorder()
instruction to trigger and retrieve measurements from the (see Programming for SDI-12 measurements).
The AVW200()
instruction is used to read measurements from one or more vibrating-wire sensors when the sensors are connected to the channels directly or connected to a multiplexer attached to the . In addition to frequency, diagnostic information is returned. (Refer to the Dest parameter in the following section.)
The data logger program can run the AVW200()
instruction in either the pipeline mode (Pipeline mode) or sequential mode (Sequential mode). In the pipeline mode, the first execution of the instruction sets up the ; subsequent execution intervals retrieve data values. If different begin and end frequencies are required to measure different types of sensors, use multiple AVW200()
instructions with the different begin and end frequencies specified in each instruction. The sequential mode performs each instruction in sequence, waits for the completion of each instruction, then repeats this process for each execution interval. The minimum scan rate for an program is 2 seconds per sensor.
Syntax
AVW200
(Result, ComPort, NeighborAddr, PakBusAddr, Dest, AVWChan, MuxChan, Reps, BeginFreq, EndFreq, ExVolt, Therm50_60Hz, Multiplier, Offset, AmpThreshold [optional])
|
Result Variable that indicates the success or failure of the communications attempt of the data logger with the Sequential mode). The result codes are as follows: . If more than one is used and the instructions are run in sequential mode, a different result variable should be specified for each (see
|
||||||||||||||||||||||
|
ComPort Used to specify the communications port that will be used to communicate with the . Enter a numeric or alphanumeric code:
|
||||||||||||||||||||||
|
Used to specify a static route to the (for example, the PakBus address of a neighbor device through which the host can communicate with the ). If 0 is entered, the is assumed to be a neighbor, meaning that the host data logger can communicate with the directly. |
||||||||||||||||||||||
|
Parameter to identify the PakBus address of the with which the host data logger is trying to communicate. Valid entries are 1 through 4094. Each PakBus device in the network must have a unique address. |
||||||||||||||||||||||
|
Variable array in which to store the results of the instruction. If only one sensor is being measured, The values returned for each sensor are:
The units and description of these values are provided in AVW200 measurement outputs. If communications are unsuccessful, NANs are stored. NOTE:
When using the CRBasic To see amplitudes with higher resolution, use SDI-12 (), Terminal mode (Terminal), or the Troubleshoot tab in Device Configuration Utility (Troubleshoot) to examine signal strength amplitude values. |
||||||||||||||||||||||
|
Channel on the where the sensor or multiplexer is wired. Valid options are 1 (+/–1VDC) or 2 (+/–2VDC). |
||||||||||||||||||||||
|
Channel on the multiplexer where measurements should start. Valid options are 1 through 32; anything outside this range returns an error. Enter 1 if a multiplexer is not used. |
||||||||||||||||||||||
|
Number of measurements to be made on the multiplexer. This parameter does not affect |
||||||||||||||||||||||
|
Beginning frequency to use for the vibrating-wire measurement. Minimum possible value is 100. Refer to the specifications of the vibrating-wire sensor for recommended |
||||||||||||||||||||||
|
Ending frequency to use for the vibrating-wire measurement. Maximum possible value is 6500; typical sweep range is 450 to 6000. Refer to the specifications of the vibrating-wire sensor for recommended |
||||||||||||||||||||||
|
Excitation voltage to be used to excite the vibrating wire. Valid options are 1 (5 VDC peak-to-peak) or 2 (12 VDC peak-to-peak). |
||||||||||||||||||||||
|
Used to set the integration time for the thermistor in the vibrating-wire sensor.
|
||||||||||||||||||||||
|
Multiplier to be used for frequency measurements. |
||||||||||||||||||||||
|
Offset to be used for frequency measurements. |
||||||||||||||||||||||
|
(for data logger OS versions 23 and higher) Optional parameter that is used to define a minimum value in mV for the amplitude of the signal. If an amplitude less than the threshold is measured, NAN (invalid) will be stored for the frequency measurement. If NOTE:
The signal strength amplitude ( (2) ) returned by the |