YSI Data Scout Advanced User Manual

Page 113

Advertising
background image

The script file above shows nested looping capabilities. The outer loop (#1) has its repeat count (2) specified at the top of the loop. The
inner loop (#2) has its repeat count (4) specified at the bottom of the loop. Please note that the XM+1 command requires an extra step
(reading of Service Request with a simple “address only” command). This is because this particular command is an “old” command
that requires this extra step. The other commands are newer “concurrent” measurement requests that do no generate a Service
Request.

On the following pages is the complete Log file that results after executing the above script file. The comments on the right side of the
page were added by Data Scout Advanced due to the Annotate Log checkbox being checked when the script was executed. Because
looping was used, the sequence #’s shown no longer represent the exact line #’s in the original scrip, as they would if looping had not
been used. The underline characters (_) shown at the start of command responses has replaced a NUL code that results from the Break
operations sent at the start of each command. Notice that the actual command is echoed at the beginning of each response, since the
serial port has only one common (Xmt and Rcv) data line. In other words, what is transmitted is also received. Notice that all
references to macro (#1) have been replaced by its address (which was 0 in this case).

-- DSAdv 'Execute Script' Log File, for script: C:\YSI\DSAdv\Src\Cmd-Log\command.cmd
-- DSAdv has made available the following 1 Transducer:
--- Xducer #1: 500- (Tank 111) Fmw.Ver= Hdw.Ver=1.0 Range=015 psi D.O.M=020523 CX=1
-- On SDI-12 Network: Com Port=1 Excitation=12.0 volts
-- Available 903x Optomux Calibrators are as follows:
--- CX#1: Serial#=177 Range=50 Delay=3 Opto.Adrs=1
-- Using DSAdv Version: 1.4.8
-- Script Run On: 06-06-2006 at 09:10:52


Lin<0001>:

Simple Test Script for SDI-12 Xducer #1

Cmd<0002>: (#1)U OPEN Expanded adrs.macro cmd: 0U OPEN
Rsp<0002>: _0U OPEN!0
Cmd<0003>: DO LOOP1 2 Begin Loop1 (1 in 2 times)
Cmd<0004>: DO LOOP2 Begin Loop2
Cmd<0005>: (#1)I

Expanded adrs.macro cmd: 0I

Rsp<0005>: _0I!013-YSI---VS2---1.0-SN#
Cmd<0006>: LOOP2 4

Repeat Loop2 (1 of 4 times)

Cmd<0007>: DO LOOP2 Begin Loop2
Cmd<0008>: (#1)I

Expanded adrs.macro cmd: 0I

Rsp<0008>: _0I!013-YSISI---VS2---1.0-SN#
Cmd<0009>: LOOP2 4

Repeat Loop2 (2 of 4 times)

Cmd<0010>: DO LOOP2 Begin Loop2
Cmd<0011>: (#1)I

Expanded adrs.macro cmd: 0I

Rsp<0011>: _0I!013-YSI---VS2---1.0-SN#

Cmd<0012>: LOOP2 4

Repeat Loop2 (3 of 4 times)

Cmd<0013>: DO LOOP2 Begin Loop2
Cmd<0014>: (#1)I

Expanded adrs.macro cmd: 0I

Rsp<0014>: _0I!013-YSI---VS2---1.0-SN#
Cmd<0015>: LOOP2 4

Terminate Loop2 (4 of 4 times)

Cmd<0016>: (#1)XM+1 Expanded adrs.macro cmd: 0XM+1
Rsp<0016>: _0XM+1!00052
Cmd<0017>: Wait PrvRspSec Waiting for 5 seconds
Rsp<0017>: Wait began at 09:10:54 and ended at 09:10:59
Cmd<0018>: (#1)

Expanded adrs.macro cmd: 0

Rsp<0018>: 0!0
Cmd<0019>: (#1)D0

Expanded adrs.macro cmd: 0D0

Rsp<0019>: _0D0!0+0.524929+0.080981
Cmd<0020>: (#1)C5

Expanded adrs.macro cmd: 0C5

Rsp<0020>: _0C5!000402
Cmd<0021>: Wait PrvRspSec Waiting for 4 seconds
Rsp<0021>: Wait began at 09:11:00 and ended at 09:11:04
Cmd<0022>: (#1)D0

Expanded adrs.macro cmd: 0D0

Rsp<0022>: _0D0!0+22.712+0

Cmd<0023>: (#1)C6

Expanded adrs.macro cmd: 0C6

Rsp<0023>: _0C6!000201
Cmd<0024>: Wait PrvRspSec Waiting for 2 seconds

YSI Incorporated

Data Scout Advanced

109

Advertising