beautypg.com

Controlline, Disarm – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 334

background image

III. COMMAND REFERENCES - 15. Command References

15B. Driver488/SUB, W31, W95, & WNT

Personal488 User’s Manual, Rev. 3.0

III-319

Bus State

Bus Lines

Data Transfer (DIO) Lines

8

7

6

5

4

3

2

1

IEEE 488 Interface

ATN

Attention (&H04)

0

0

0

0

0

1

0

0

EOI

End-Or-Identify (&H80)

1

0

0

0

0

0

0

0

SRQ

Service Request (&H40)

0

1

0

0

0

0

0

0

DAV

Data Valid (&H08)

0

0

0

0

1

0

0

0

NDAC

Not Data Accepted (&H10)

0

0

0

1

0

0

0

0

NRFD

Not Ready For Data (&H20)

0

0

1

0

0

0

0

0

Serial Interface

DTR

Data Terminal Ready (&H02)

0

0

0

0

0

0

1

0

RI

Ring Indicator (&H10)

0

0

0

1

0

0

0

0

RTS

Request To Send (&H01)

0

0

0

0

0

0

0

1

CTS

Clear To Send (&H04)

0

0

0

0

0

1

0

0

DCD

Data Carrier Detect (&H08)

0

0

0

0

1

0

0

0

DSR

Data Set Ready (&H20)

0

0

1

0

0

0

0

0

ControlLine

Driver488/W31 and Driver488/W95 only

SYNTAX

int pascal ControlLine(DevHandleT devHandle);

ControlLine

returns a bit mapped number.

devHandle

refers to the I/O adapter. If

devHandle

refers to an external device,

the

ControlLine

command acts on the hardware interface to which the

external device is attached.

RESPONSE

-1 if error,

otherwise, a bit mapped integer indicating the value of the

control lines.

MODE

Any

BUS STATES

None

SEE ALSO

TimeOut, ControlLine (Driver488/SUB only)

EXAMPLES

result = ControlLine(ieee);
printf(“The response is %X\n”,result);

The

ControlLine

command applies to IEEE 488 devices only. It returns the status of the IEEE 488

bus control lines as an 8-bit unsigned value (bits 2 and 1 are reserved for future use), as shown below:

8

7

6

5

4

3

2

1

EOI

SRQ

NRFD

NDAC

DAV

ATN

0

0

Disarm

SYNTAX

int pascal Disarm(DevHandleT devHandle, ArmCondT condition);

devHandle

refers to either an IEEE 488 interface or an external device. If

devHandle

refers to an external device, then the

Disarm

command acts on

the hardware interface to which the external device is attached.

condition

specifies which of the conditions are no longer to be monitored. If

condition is

0

, then all conditions are

Disarm

ed.

RETURNS

-1 if error

MODE

Any

BUS STATES

None

SEE ALSO

Arm, OnEvent, LightPen

EXAMPLES

errorcode=Disarm(ieee,acTalk|acListen|acChange);