Execute – Measurement Computing TempScan/1100 User Manual
Page 256

A-60 API Command Reference
889897
TempScan / MultiScan User’s Manual
X
- Execute
TYPE
System
EXECUTION
Immediate
SYNTAX
X
Execute preceding command string.
DESCRIPTION
Deferred commands are interpreted and processed in the Acquisition Buffer as they are received, but they require
the Execute (X) command to be issued in order to be executed. If multiple system commands are used in the
same string, each use of the command must be followed by the Execute (X) command. Any number of Execute
(X) commands may be inserted into the same command string. However, immediate commands do not require
an Execute (X) command to be processed.
While a command line is being interpreted, the front panel LED indicators will not be updated. These LED
indicators will only be updated when the unit is in a ready state. In order to determine if the unit is in a ready
state, perform a Serial Poll on the Status Byte Register (
STB
) for the Ready Bit (Bit 3).
For more detail on deferred and immediate command types, see section Command Interpretation at the beginning
of this chapter.
EXAMPLE
PRINT#1,"CLEAR07"
‘ Clear the unit
PRINT#1,"OUTPUT07;*C"
‘ Clear the current channel configuration
PRINT#1,"OUTPUT07;C1-16,1 C17,2
C18-32,3"
‘ Send channel configuration
PRINT#1,"OUTPUT07;U4"
‘ Get HLL data for the new channel configuration.
(Note: ERROR LED indicator turns on)
PRINT#1,"OUTPUT07;X"
‘ Instruct the unit to execute the
U4
command. Now the
unit has its new channel configuration
PRINT#1,"OUTPUT07;E?X"
‘ Find out what caused the error
PRINT#1,"ENTER07"
‘ Retrieve error response
INPUT A$
E128
‘ Screen shows
E128
- Command Conflict Error, due to
fact that no channels were configured (
C
is a deferred
command) when the
U4
was executed (
U4
is an
immediate command)