beautypg.com

Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 68

background image

II. SOFTWARE GUIDES - 8. Driver488/DRV

8D. Getting Started

Personal488 User’s Manual, Rev. 3.0

II-53

Next, take a reading from IEEE 488 bus device

16

:

C:\> ECHO ENTER 16> IEEE
C:\> TYPE IEEE
NDCV=035.679E-3

Now, if an IEEE 488 bus device name has been defined using the

INSTALL

program, that name can be

used to refer to the bus device. For example, assume that a Keithley Instruments Model 195 digital
multimeter has been given the name

K195

. The meter could be reset to its power-on conditions with a

CLEAR

command:

C:\> ECHO CLEAR K195> IEEE

To program the 195 for the 2 VDC range, send it the

R3F0X

command:

C:\> ECHO OUTPUT K195;R3F0X> IEEE

This could also be achieved by sending the command directly to the device:

C:\> ECHO R3F0X> K195

To check the status of the 195, use the

SERIAL POLL,

or

SPOLL

command:

C:\> ECHO SPOLL K195> IEEE
C:\> TYPE IEEE

To display a reading from the 195, use the

ENTER

command:

C:\> ECHO ENTER K195> IEEE
C:\> TYPE IEEE

To view continuous readings from the 195, read directly from the

K195

device:

C:\> TYPE K195

This causes readings to be taken from the 195 and displayed until

is typed. Note that

may halt Driver488/DRV in the middle of a transaction, causing the first attempt at

another command to give a

SEQUENCE ERROR

. If this should occur, simply retry the last command.

It is also possible to save the bus device data into a file:

C:\> ECHO ENTER K195> IEEE
C:\> TYPE IEEE> DATA
C:\> ECHO ENTER FREQ> IEEE
C:\> TYPE IEEE>> DATA

The first two commands create a file named

DATA

that holds a reading from the 195. The next two

commands append a reading from the device

FREQ

to the data file. Note the use of the

>>

to indicate

append.

Indicator

Driver488/DRV Status

C

It is in the Controller state.

S

It is the System Controller.

21

The value of its IEEE 488 bus address.

1

An Address Change has occurred.

I

It is idle (neither a talker nor a listener).

0

There is no

ByteIn

available.

0

It is not ready to send a

ByteOut

.

0

Service Request (

SRQ

) is not asserted.

000

There is no outstanding error.

T0

It has not received a bus device

TRIGGER

command (only applicable in the Peripheral

mode).

C0

It has not received a

CLEAR

command (only applicable in the Peripheral mode).

P0

No

CONTINUE

transfer is in progress.

OK

The error message is “OK”.