Omega Engineering OMB-NETSCAN 1500 User Manual page 174

Ethernet/internet-based data logging & control instrument
Table of Contents

Advertisement

API Command Reference
TYPE
EXECUTION
SYNTAX
DESCRIPTION
The Set Event Mask (
turn, determine which Event Status Register (ESR) conditions are enabled to generate the Event Status Register
Bit (ESB) in the Status Byte (STB) Register. Multiple ESR bits can be enabled simultaneously by issuing Set
Event Mask (
Mask remains enabled until a Clear Event Mask (
(
*R
) command.
The following list outlines the possible conditions of the ESE.
N000
: Sending this command clears the entire mask of the Event Status Enable (ESE) Register to zero.
: Acquisition Complete. Sending this command allows the setting of the ESB if the unit has determined
N001
that the configured acquisition has completed.
N002
: Stop Event. Sending this command allows the setting of the ESB when the pre-defined stop event of a
configured acquisition has occurred.
N004
: Query Error. This condition is set when an attempt is made to read data from the output queue when no
data are present or data in the output queue were lost. Data may be lost when too many data are requested to
be buffered in the queue (for example, issuing multiple commands to return data without ever reading them).
N008
: Device Dependent Error. This condition is set when a conflict in programmed parameters is detected.
This is also referred to as a conflict error.
: Execution Error. This condition is set when a parameter exceeds valid limits for a particular command.
N016
This is also referred to as Invalid Device Dependent Command Option (IDDCO) error.
N032
: Command Error. This condition is set when an illegal command is sent to the unit. This is also referred
to as Invalid Device Dependent Command (IDDC) error.
N064
: Buffer 75% Full. Sending this command will allow the setting of the ESB when the unit has determined
that the acquisition buffer is at least 75% full.
N128
: Power On. This condition is set whenever unit is first powered up or a
EXAMPLE
PRINT#1, "N0 X"
PRINT#1, "N? X"
LINE INPUT #1, N$
PRINT N$
PRINT#1, "N1N2X"
PRINT#1, "N? X"
LINE INPUT #1, N$
PRINT N$
A-34
N
- Set Event Mask
System
Deferred
Nmask
Directly sets the Event Status Enable Register (ESE) where
form of the number
following conditions:
- Clear event mask
000
001
- Acquisition complete
002
- Stop Event
- Query Error
004
008
- Device Dependent Error
N?
Query the Event mask.
N
) command directly sets the Event Status Enable (ESE) Register. ESE conditions, in
N
) commands separately or by combining them in one command string. The programmed Event
nnn
such that
000
<
016
032
064
128
) command is sent or the controller sends a Power-On Reset
N0
' Clear the Event Status Enable (ESE) Register
' Read the Event Status Enable (ESE) Register
' Computer screen shows
N000
' Set enable ESB setting on pre-trigger count satisfied or
acquisition complete
' Read the Event Status Enable (ESE) Register
' Computer screen shows
N003
Appendix A
mask
is in the
nnn
<
255
is summed from the
- Execution Error
- Command Error
- Buffer 75% Full
- Power On
*R
is issued.
NetScan User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-netscan

Table of Contents