beautypg.com

3 - command descriptions, Command descriptions – Measurement Computing Serial488/4 User Manual

Page 40

background image

Section 3

Command Descriptions

3.1

Command Descriptions

Control of the Serial488/4 is implemented with 22 bus commands, described here

in detail. Examples are given for the commands using a PC functioning as an IEEE
488 controller by using the IO tech GP488B board and associated driver softw are,
Driver488. All examples are given using GWBASIC or BASICA. The Serial488/4
bus address is assumed to be set to 8 for all examples.

In order to establish communication w

ith Driver488 from G WBASIC or

BASICA, the following sequence must be used:

10 OPEN "\DEV\IEEEOUT" FOR OUTPUT AS #1
20 IOCTL#1,"BREAK"
30 PRINT#1,"RESET"
40 OPEN "\DEV\IEEEIN" FOR INPUT AS #2

All of the command examples that follow assume that

the driver has been

properly opened and reset by the above sequence.

All commands may be entered in upper or low er case. Each command offers a

query (?) option. This option can be used to determine the present configuration or
mode of a command previously executed. In addition, there are four commands that
are query only ( i.e., they are used as status commands and have no set options). Any
number of query commands may be combined into one

string to allow the user to

construct a specialized status command requesting the Serial488/4 to return only that
information which is of interest .

Attention!

It is necessary that the EXECUTE command (X) follow
all command strings sent to the Serial488/4. No commands
are executed until an X is received by the Serial488/4. The
only exception to this rule are the query

commands.

Query commands do not have to be followed by an X.

This manual is related to the following products: