M Set Srq Mask - Omega Engineering OMB-CHARTSCAN 1400 User Manual

Portable data recorder
Table of Contents

Advertisement

Appendix A
TYPE
EXECUTION
SYNTAX
DESCRIPTION
The Set SRQ Mask (
bus controller of the existence of several conditions in the Service Request Enable (SRE) Register. These
conditions are described in detail below. Multiple conditions can be enabled simultaneously. If multiple
conditions are contained within the same command string, each Set SRQ Mask command should be proceeded
by an Execute (
values sent. Alternately, the entire value of all the desired conditions may be sent within one Set SRQ Mask (
command string. The programmed SRQ Mask remains enabled until the receipt of a
detection of a Device Clear (DCL) or Selected Device Clear (SDC).
The following list outlines the possible conditions of the SRE:
: This is the power-on default mask value. It disables the unit from generating service requests by clearing
M000
the entire mask of the Service Request Enable (SRE) Register to zero.
: SRQ On Alarm. Sending this command will enable the unit to generate an SRQ when it has recognized
M001
that one or more channels has gone into alarm condition. Refer to the Configure Channels (
to configure an alarm condition.
: SRQ On Trigger Event. Sending this command allows the unit to generate a service request when it has
M002
detected a valid trigger from the programmed trigger source.
: SRQ On Ready. This command causes a service request to be generated when the unit has completed
M004
executing a set of commands from the IEEE 488 bus controller. This is used to allow the bus controller to attend
to other bus matters while the unit is changing its internal state.
: SRQ On Scan Available. Sending this command will cause the unit to generate an SRQ when at least
M008
one scan is available to be read in the acquisition buffer.
: SRQ On Message Available (MAV). Sending this command will cause the unit to generate an SRQ
M016
when there is data available in the output queue to be read.
: SRQ On Event Detected. Sending this command will cause the unit to generate an SRQ when at least
M032
one of the defined events in the Event Status Register has occurred. Refer to the Set Event Mask (
on how to define events.
: SRQ On Buffer Overrun. Sending this command will cause the unit to generate an SRQ when it has
M128
detected that an overrun of the acquisition buffer has occurred.
EXAMPLE
PRINT#1,"OUTPUT07;M0X"
PRINT#1,"OUTPUT07;M1XM2X"
PRINT#1,"OUTPUT07;M?X"
PRINT#1,"ENTER07"
LINE INPUT #2, M$
PRINT M$
ChartScan User's Manual
- Set SRQ Mask
M
System
Deferred
Use the IEEE 488 Service Request (SRQ) mechanism to inform the
Mmask
IEEE 488 bus controller of certain conditions, where
the number
following conditions:
- Power-on default mask value
000
- SRQ On Alarm
001
- SRQ On Trigger Event
002
- SRQ On Ready
004
Query the SRQ mask.
M?
) command uses the IEEE 488 Service Request (SRQ) mechanism to inform the IEEE 488
M
) command. The resulting SRQ Mask register value is the logical ORed value of the individual
X
such that
<
<
nnn
000
nnn
008
016
032
128
' Clear the Service Request Enable (SRE) register
' Set the unit to SRQ on Alarm or Trigger
' Read the current Service Request Enable (SRE)
register
' Computer screen shows
API Commands
is in the form of
mask
is summed from the
255
- SRQ On Scan Available
- SRQ On Message Available
- SRQ On Event Detected
- SRQ On Buffer Overrun
command or the
M000
) command on how
C
) command
N
M003
)
M
A-41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-chartscan-1400

Table of Contents