![IOtech MultiScan 1200 Скачать руководство пользователя страница 333](http://html1.mh-extra.com/html/iotech/multiscan-1200/multiscan-1200_user-manual_2088024333.webp)
TempScan / MultiScan User's Manual
Chapter 16: API Command Reference 323
Q
- Set Query Terminator
TYPE
System
EXECUTION
Deferred
SYNTAX
Qresp,
hll,
scan,
block,
sep
Set the query terminators via the following parameters:
resp
is the response
terminator,
hll
is the channel terminator,
scan
is the scan terminator,
and
block
is the
Trigger Block
terminator.
sep
is the separator terminator which determines whether or not a separator
character should be used. Valid options for
sep
are:
0
- Place no
separators in returned buffered scan data when it is read, and
1
- Place a
separator whose value is determined by the current
Set User Terminator
(
V
) command setting into the returned buffer data when it is read.
Q?
Query current terminator settings.
DESCRIPTION
The
Set Query Terminator
(
Q
) command is used to set the data output terminators via the following parameters –
resp
,
hll
,
scan
,
block
, and
sep
. Each of the first four arguments may be defined with one of the following
terminator types, where
USER
is the user-defined User Terminator corresponding to the ASCII decimal value
val
, as defined by the
Set User Terminator
(
V
) command:
Terminator Description
Terminator Description
Terminator
Type
IEEE-488
Serial
Terminator
Type
IEEE-488
Serial
0
(None)
(None)
1
CR LF/EOI
CR LF
6
CR
CR
2
CR LF
CR LF
7
LF/EOI
LF
3
LF CR/EOI
LF CR
8
LF
LF
4
LF CR
LF CR
9
USER/EOI
USER
5
CR/EOI
CR
10
USER
USER
The first argument
resp
specifies the response terminator for general purpose queries which do not request
High/Low/Last or Acquisition Buffer data. The second argument
hll
specifies the channel terminator to be used
for High/Low/Last (HLL) Registers query requests. The third argument
scan
specifies the terminator which will
follow each scan that is output for Acquisition Buffer query requests, except when following the last scan in the
Trigger Block
. In this case, the next argument
block
specifies the terminator which will follow each
Trigger
Block
. The last argument
sep
specifies whether or not a reading separator character should be placed between
each returned reading in the Acquisition Buffer scan data. Like the
USER
terminator, this separator is a user-
defined User Terminator with the ASCII decimal value
val
, set via the
Set User Terminator
(
V
) command.
For more information on terminators, see section
Data Format Configuration
in the chapter
System Configuration
.
EXAMPLE
PRINT#1,"OUTPUT07;C1-2,1X"
‘ Configure two channels for Type J thermocouples
PRINT#1,"OUTPUT07;F0,0X"
‘ Configure Engineering Units, degrees C
PRINT#1,"OUTPUT07;Q7,7,0,0,0X"
‘ Set the
resp
and
hll
terminators to
LF/EOI
PRINT#1,"OUTPUT07;Q?X"
‘ Get the current query terminators
PRINT#1,"ENTER07"
Q07,07,00,00,00
‘ Screen shows the current query terminators
PRINT#1,"OUTPUT07;U13X"
‘ Request the last readings
PRINT#1,"ENTER07"
‘ Get reading for Channel 1
INPUT#1 A$
+0104.20
‘ Screen shows reading
PRINT#1,"ENTER07"
‘ Get reading for Channel 2
INPUT#1 A$
+0010.40
‘ Screen shows reading
PRINT#1,"OUTPUT07;Q7,0,0,0,0X"
‘ Now set the
resp
terminator only to
LF/EOI
PRINT#1,"OUTPUT07;U13X"
‘ Request the last readings
PRINT#1,"ENTER07"
‘ Get readings for Channels 1 through 4
INPUT#1 A$
+0104.20
+0010.40
' Screen shows readings for Channels 1 and 2
together, instead of one at a time
Содержание MultiScan 1200
Страница 2: ...TempScan MultiScan User s Manual...
Страница 4: ...TempScan MultiScan User s Manual...
Страница 10: ...vi TempScan MultiScan User s Manual Notes...
Страница 20: ...10 Chapter 1 System Overview TempScan MultiScan User s Manual Notes...
Страница 106: ...96 Chapter 8 ChartView ChartView Plus TempScan MultiScan User s Manual Notes...
Страница 130: ...120 Chapter 9 TempView TempScan MultiScan User s Manual...
Страница 150: ...140 Chapter 9 TempView TempScan MultiScan User s Manual Notes...
Страница 166: ...156 Chapter 10 PostView TempScan MultiScan User s Manual Notes...
Страница 234: ...224 Chapter 13 System Operation TempScan MultiScan User s Manual Notes...
Страница 248: ...238 Chapter 14 System Calibration TempScan MultiScan User s Manual Notes...
Страница 284: ...274 Chapter 15 Program Examples TempScan MultiScan User s Manual Notes...
Страница 330: ...320 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Страница 342: ...332 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Страница 358: ...348 Appendix TempScan MultiScan User s Manual Notes...
Страница 364: ...354 Index TempScan MultiScan User s Manual Notes...