Multiple Commands; Sequential And Overlapped Commands; Commands That Require The Calibration Store Or Mode Switch To Be Enabled; Long-Term Commands - Fluke 5790A Operator's Manual

Ac measurement standard
Hide thumbs Also See for 5790A:
Table of Contents

Advertisement

5-21. Multiple Commands

If the controller on the IEEE-488 bus is a Fluke 1722A, commands are sent one at a time
or combined in Fluke BASIC PRINT statements. For example, if the 5790A bus address
is 6 and you want take a reading on the input at INPUT 2, you could use the following
BASIC program statements:
10 INIT PORT 0 \ REMOTE @6
20 PRINT @6,"INPUT INPUT2"
30 PRINT @6,"MEAS?"
You can combine two commands in one statement as follows:
10 INIT PORT 0 \ REMOTE @6
20 PRINT @6,"INPUT INPUT2 ; MEAS?"
In both versions of the program, the PRINT statements transmit all necessary interface
messages (ATN and MLA) automatically.
To use the 1722A to control the 5790A via its serial interface ("KB1:" on the 1722A), the
equivalent program is:
10
SI% = 1% \ SO% = 2%
20
OPEN "KB1:" AS NEW FILE SO%
30
OPEN "KB1:" AS OLD FILE SI%
40
PRINT #SO%, "REMOTE"
50
PRINT #SO%, "INPUT INPUT2 ; MEAS?"

5-22. Sequential and Overlapped Commands

Commands executed immediately as they are encountered in the data stream are called
sequential commands. Commands that begin execution, but are completed some time
later are called overlapped commands, because they can be overlapped by later
commands. All the commands described in Section 6 are sequential unless it is stated
otherwise in the alphabetical listings.
You can use *OPC, *OPC?, and *WAI to detect completion of overlapped or long-term
commands. (See the full descriptions of *OPC, *OPC?, and *WAI in Section 6 and the
remote examples in this section for more information about these commands.)
5-23. Commands that require the CALIBRATION STORE or MODE Switch
to be Enabled
The following commands do not work unless the rear panel CALIBRATION STORE
switch is in the ENABLE position: CLOCK, most calibration commands, and *PUD.
FORMAT ALL, FORMAT CAL, and some calibration commands also require that you
set the CALIBRATION MODE switch to SERVICE. Attempting to use any of these
commands with the CALIBRATION STORE or MODE switch in the NORMAL position
logs an error into the error queue. (Or it returns the error message if in serial remote
control TERMINAL mode.)

5-24. Long-Term Commands

Some remote commands take a relatively long time to execute. These are called "long-
term commands" and they are identified as such in the command descriptions in Section
6. If a command that produces a change in instrument state is received during the
execution of a long-term command, for example, CAL_AC, the command is not executed
and a device-dependent error occurs. (Bit 3 in the Event Status Register is set to 1 if
enabled, and the error code for the error is available to be read from the error queue. See
the "ERR?" command for more information.)
5
Remote Operation
Using Commands
5-13

Advertisement

Table of Contents
loading

Table of Contents