API Command Reference
Appendix A
A-8
NetScan User’s Manual
Command
Syntax
Description
L
Set Trigger Level
Lchan,
level,
hyst
Sets the level against which the testing of channel readings should
be performed where
chan
is the channel number such that
1
<
chan
<
max
,
where max = 128 for NetScan.
level
is the level against which the readings are tested to
determine if the level has been exceeded.
hyst
is the hysteresis level.
L?
Query the the current level settings
M#
Set Measuring Mode
M#mode
Specify measuring mode. Valid options for
mode
are:
0
- Line
cycle integration / high-speed multi-channel mode, and
1
-
Single channel high-speed burst mode.
N
Set Event Mask
Nmask
Directly sets the Event Status Enable Register (ESE) where
mask
is in the form of the number
nnn
such that
000
<
nnn
<
255
is
summed from the following conditions:
000
- Clear event mask
001
- Acquisition complete
002
- Stop Event
004
- Query Error
008
- Device Dependent Error
016
- Execution Error
032
- Command Error
064
- Buffer 75% Full
128
- Power On
N?
Query the Event mask.
O
Set Digital Outputs
Obank1,
bank2,
bank3,
bank4
Set any of the 32 digital outputs (separated into four 8-bit banks)
to a specified setting, where
bankn
(
n
=
1
,
2
,
3
,
4
) is an
argument in the form of the number
nnn
such that
000
<
nnn
<
255
when converted to binary format represents the desired
settings for the 8-bit bank.
O?
Query current state of digital output.
P
Program Trigger Times
Pstart,
stop
Set the trigger start and/or stop times for an acquisition configured
for start and/or stop on absolute time, where
start
and
stop
are in the standard time/date stamp format:
HH:MM:SS:T,
mm/dd/yy
where
H
is hours,
MM
is minutes,
SS
is seconds,
T
is tenths of a second,
mm
is month,
dd
is day, and
yy
is year.
P?
Query current start and stop times.
?
Query
?
Query the present configuration or mode of the command
preceding the
?
Q
Set Query Terminator
Qresp,
hll,
scan,
block,
sep
Set the query terminators with the following parameters:
resp
is
the response terminator,
hll
is the channel terminator,
scan
is the terminator which follows each scan output, and
block
is
the terminator which follows each trigger block output.
sep
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.
QC?
Query Card Data
QC?
Read back card ID and calibration information from the card
previously selected by the Select Card (
C#
) command.
R
Read Buffered Data
Rtype
Read scan data from the acquisition buffer where
type
is the
type of data request being made. Valid options for
type
are:
1
- Read the oldest scan currently residing in the acquisition
buffer,
2
- Read the oldest complete trigger block currently
residing in the acquisition buffer, and
3
- Read all the scan data
that currently resides in the acquisition buffer.
R?
Query the contents of the data buffer.
Summary of Contents for OMB-NETSCAN 1500
Page 6: ...iv NetScan User s Manual...
Page 18: ...1 12 Configuring and Starting NetScan NetScan User s Manual Notes...
Page 38: ...3 8 General Information and Specifications NetScan User s Manual Notes...
Page 82: ...4 44 ChartView Software Reference NetScan User s Manual Notes...
Page 118: ...6 20 Calibration NetScan User s Manual...
Page 140: ...A ii NetScan User s Manual...
Page 192: ...API Command Reference Appendix A A 52 NetScan User s Manual Notes...
Page 237: ...Appendix D Registers Data Formats Queries NetScan User s Manual D 13...
Page 244: ...NetScan Program Examples Appendix E E 2 NetScan User s Manual...
Page 248: ...ASCII Code Summary Appendix F F 4 NetScan User s Manual Notes...
Page 250: ...NetScan Error Messages Appendix G G 2 NetScan User s Manual Notes...
Page 252: ...Abbreviations Appendix H H 2 NetScan User s Manual Notes...
Page 254: ...NetScan User s Manual...