SDI-12 example
The following program is an example of how to run the SDI12Recorder()
instruction. Note that the values returned from the SDI12Recorder()
instruction are different depending on the SDI-12 measurement command issued.
For this example, two multiplexers are measured by the data logger. The PortSet()
instructions in the data logger program (see the following example) and by connecting the clock and reset lines of the multiplexers to control ports on the data logger. When using SDI-12 with the , the clock and reset lines of the are unused.
Extended SDI-12 commands can be used to change the begin frequency, end frequency, and excitation voltage of the vibrating-wire sensors attached to the Device Configuration Utility. However, after issuing an extended SDI-12 command, the very next measurement will use the bbbb, eeee, and v values specified in the extended command. The second and remaining measurements will revert to the settings specified via Device Configuration Utility.
. However, these extended SDI-12 commands only work for the next measurement command. By default, standard SDI-12 measurement commands use the begin/end/excite voltage settings specified in the settings usingAn example of an extended command is 0XVW450,5000,1!
. This command will configure the next measurement with begin freq = 450, end freq = 5000, and 5 VDC excitation. Following the extended command, aM1!
will use the parameters set by the extended command.
SDI-12 command codes shows the specific SDI-12 command codes and their returned values.
SDI-12 measurement command |
Returned values |
---|---|
|
1) Chan1 frequency |
|
1) Chan1 Frequency |
|
1) Chan2 frequency |
|
1) Battery voltage |
|
Returns OK if accepted |
SDI-12 - data logger controlling 2 multiplexers |
---|
|