Campbell Scientific WINDSONIC1 WINDSONIC 2-D Sonic Wind Sensors - Page 30

Changing the SDI-12 Address Using LoggerNet and a Datalogger, 7.5.1 Array-Based Edlog Dataloggers

Page 30 highlights

WindSonic Two-Dimensional Sonic Anemometer Totalize (1,one,IEEE4,diag10) FieldNames ("diag_10_TOT") Totalize (1,one,IEEE4,diagNAN) FieldNames ("nnd_TOT") EndTable BeginProg one = 1 Scan (1,Sec,3,0) SDI12Recorder (wind_direction,1,0,"R0!",1,0) If ( wind_direction = NAN ) Then wind_speed = NAN diag = NAN EndIf disable_flag = (wind_direction=NAN) OR (diag0) CallTable stats NextScan EndProg 7.5 Changing the SDI-12 Address Using LoggerNet and a Datalogger Up to ten WindSonic4s or other SDI-12 sensors can be connected to a single datalogger control port. A datalogger can measure up to 4 WindSonic4 at 1 Hz. Each SDI-12 device must have a unique SDI-12 address between 0 and 9. The factory-set SDI-12 address for the WindSonic4 is 0. The WindSonic4 SDI-12 address is changed in software by issuing the aAb! command, where a is the current address and b is the new address, to the WindSonic4 over the SDI-12 interface. The current address can be found by issuing the ?! command. A computer running LoggerNet can be used to issue any valid SDI-12 command through the datalogger to the WindSonic4. For a complete list of SDI-12 commands supported by the WindSonic4, see Section 11 of the Gill WindSonic manual. 7.5.1 Array-Based Edlog Dataloggers • Connect a single WindSonic4 to the datalogger using Control Port p as described in Section 7.2.3, SDI-12 Wiring, and download a datalogger program that contains the SDI-12 Recorder (Instruction 105) instruction with valid entries for each parameter. • In the LoggerNet Toolbar, navigate to and activate the Test|Terminal Emulator ... menu. The "Terminal Emulator" window will open. In the Select Device menu, located in the lower left hand side of the window, select the station. • Click on the Open Terminal button. If communications between the datalogger and PC are successful, the red bar located in the upper left hand side of the window will turn green. • Click inside the "Terminal Emulator" window and press the key until the datalogger responds with the "∗" prompt (FIGURE 7-1). 22

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46

WindSonic Two-Dimensional Sonic Anemometer
Totalize (1,one,IEEE4,diag<>10)
FieldNames ("diag_10_TOT")
Totalize (1,one,IEEE4,diag<>NAN)
FieldNames ("nnd_TOT")
EndTable
BeginProg
one = 1
Scan (1,Sec,3,0)
SDI12Recorder (wind_direction,1,0,"R0!",1,0)
If ( wind_direction = NAN ) Then
wind_speed = NAN
diag = NAN
EndIf
disable_flag =
(wind_direction=NAN) OR (diag<>0)
CallTable stats
NextScan
EndProg
7.5
Changing the SDI-12 Address Using LoggerNet and a
Datalogger
Up to ten WindSonic4s or other SDI-12 sensors can be connected to a single
datalogger control port.
A datalogger can measure up to 4 WindSonic4 at 1
Hz.
Each SDI-12 device must have a unique SDI-12 address between 0 and 9.
The factory-set SDI-12 address for the WindSonic4 is 0.
The WindSonic4
SDI-12 address is changed in software by issuing the
a
A
b
!
command, where
a
is the current address and
b
is the new address, to the WindSonic4 over the
SDI-12 interface.
The current address can be found by issuing the
?!
command.
A computer running LoggerNet can be used to issue any valid SDI-12
command through the datalogger to the WindSonic4.
For a complete list of
SDI-12 commands supported by the WindSonic4, see Section 11 of the Gill
WindSonic manual.
7.5.1 Array-Based Edlog Dataloggers
Connect a single WindSonic4 to the datalogger using Control Port
p
as
described in Section 7.2.3,
SDI-12 Wiring
, and download a datalogger
program that contains the SDI-12 Recorder (Instruction 105) instruction
with valid entries for each parameter.
In the LoggerNet Toolbar, navigate to and activate the Test|Terminal
Emulator … menu.
The “Terminal Emulator” window will open.
In the
Select Device menu, located in the lower left hand side of the window,
select the station.
Click on the Open Terminal button.
If communications between the
datalogger and PC are successful, the red bar located in the upper left hand
side of the window will turn green.
Click inside the “Terminal Emulator” window and press the <enter> key
until the datalogger responds with the “
” prompt (FIGURE 7-1).
22