beautypg.com

Check listener, Clear, Clock frequency – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 301

background image

15A. Driver488/DRV Commands

III. COMMAND REFERENCES - 15. Command References

III-286

Personal488 User’s Manual, Rev. 3.0

CHECK LISTENER

SYNTAX

CHECK LISTENER pri-addr[sec-addr]

pri-addr

is a primary device address in the range

0

to

30

.

Sec-addr

is an optional two-digit secondary device address in the range

00

to

31

.

RESPONSE

1 if listener found

0 if listener not found

MODE

CA

BUS STATES

ATN

MTA, UNL, LAG, (check for NDAC asserted)

SEE ALSO

FIND LISTENER, BUS ADDRESS

EXAMPLE

PRINT#1”CHECKLISTENER 1501”
INPUT#2,N
IF N=1 THEN PRINT “LISTENER FOUND”
IF N=0 THEN PRINT “LISTENER NOT FOUND”

The

CHECK LISTENER

command checks for the existence of a device on the IEEE 488 bus at the

specified address.

CLEAR

SYNTAX

CLEAR [addr[,addr…]]

addr

is a device address (primary with optional secondary) or an external

device name.

RESPONSE

None

MODE

CA

BUS STATES

ATN

DCL (all devices)

ATN

UNL, MTA, LAG, SDC (selected devices)

SEE ALSO

RESET

EXAMPLES

PRINT#1,CLEAR”

Issue a Device Clear to all devices.

PRINT#1,”CLEAR12,18”

Issue a Selected Device Clear to devices 12 and 18.

PRINT#1,”CLEAR DMM”

Issue a Selected Device Clear to the device DMM.

The

CLEAR

command causes the Device Clear (

DCL

) bus command to be issued by Driver488. If the

optional addresses are included, the Selected Device Clear (

SDC

) command is issued to all specified

devices. IEEE 488 bus devices that receive a Device Clear or Selected Device Clear command
normally reset to their power-on state.

CLOCK FREQUENCY

SYNTAX

[CLOCK]FREQUENCY frequency

frequency

is the actual clock rate in megahertz rounded up to the nearest whole

number of megahertz.

RESPONSE

None

MODE

Any

BUS STATES

None

SEE ALSO

RESET

EXAMPLE

PRINT#1, “CLOCK FREQUENCY 8”

The

CLOCK FREQUENCY

command specifies the IEEE 488 adapter internal clock frequency. The clock

frequency depends upon the design and jumper settings of the interface board. The specified clock
frequency must be the actual clock rate in megahertz rounded up to the nearest whole number of
megahertz. For example, the MP488 and MP488CT boards use a fixed clock frequency of 8 MHz.