
? - Query
SYNTAX
?
(Command Support) Returns present configuration or mode of the command
preceding the
?.
Note:
One exception to this command description is the View Version (
V?) command
which is not related to the View Configuration (V) command.
DESCRIPTION
All Digital488/80A commands offer a Query (
?) option which may be used to determine the present configuration or
mode of a command previously executed. To use this option, the first letter of the command is used, followed by a
question mark (
?). One exception to this command description is the View Version (V?) command which is not related
to the View Configuration (V) command.
Any number of these Query commands may be combined into one string to allow the user to construct a specialized
status command requesting the Digital488/80A to return only that information which is of interest for a given
application. The Execute (
X) command is not needed when using the Query option of a command.
EXAMPLE 1: Channel 1 SRQ Status.
PRINT#1,"CLEAR08"
Line 1: Reset the Digital488/80A.
PRINT#1,"OUTPUT08;M4X"
Line 2: Select SRQ on IEEE 488 bus error.
PRINT#1,"OUTPUT08;M?"
Line 3: Determine the last Service Request Mask (M) command executed.
PRINT#1,"ENTER08"
Line 4: Read data from the Digital488/80A.
INPUT#2,A$,
PRINT A$
Line 6: Display shows: M4
EXAMPLE 2: Using the User Status (U) Command to Return Channel 1 Status.
PRINT#1,"CLEAR08"
Line 1: Reset the Digital488/80A.
PRINT#1,"OUTPUT08;U0X"
Line 2: Request the status of Channel 1.
PRINT#1,"ENTER08"
Line 3: Read data from the Digital488/80A.
INPUT#2,A$,
PRINT A$
Line 5: Display shows the status message:
*.*C#E#F#G#I###K#L####M###P#R#S##Y#
EXAMPLE 3: Using a Query (?) Command String to Return the Same Channel 1 Status.
PRINT#1,"CLEAR08"
Line 1: Reset the Digital488/80A.
PRINT#1,"OUTPUT08;V?C?E?
F?G?I?K?L?M?P?R?S?Y?X"
Line 2: Request the status of Channel 1.
PRINT#1,"ENTER08"
Line 3: Read data from the Digital488/80A.
INPUT#2,A$,
PRINT A$
Line 5: Display shows the same status message:
*.*C#E#F#G#I###K#L####M###P#R#S##Y#
76 Digital488/80A Commands
967695 Digital488/80A User's Manual
Comentários a estes Manuais