Resume, Sendcmd, Senddata – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 360

Advertising
background image

III. COMMAND REFERENCES - 15. Command References

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

Personal488 User’s Manual, Rev. 3.0

III-345

8.

Clear

Change

,

Trigger

, and

Clear

status.

9.

Reset I/O adapter settings to installed values. (

BusAddress

,

TimeOut

,

IntLevel

and

DmaChannel

)

Resume

SYNTAX

int pascal Resume(DevHandleT devHandle, bool monitor);

devHandle

refers to either an interface or an external device. If

devHandle

refers to an external device, then the

Resume

command acts on the hardware

interface to which the external device is attached.

monitor

is a flag that when it is

ON

, Driver488 monitors the data.

RETURNS

-1 if error

MODE

CA

BUS STATES

*ATN

SEE ALSO

Finish

EXAMPLES

errorcode = Resume(ieee,OFF);

Do not go into monitoring mode.

errorcode = Resume(ieee,ON);
errorcode = Finish(ieee);

Go into monitoring mode.

The Resume command unasserts the Attention (

ATN

) bus signal. Attention is normally kept asserted by

Driver488, but it must be unasserted to allow transfers to take place between two peripheral devices. In
this case, Driver488 sends the appropriate Talk and Listen addresses, and then must unassert Attention
with the

Resume

command.

If

monitor

is specified, Driver488 monitors the handshaking process but does not participate in it.

Driver488 takes control synchronously when the last terminator or

EOI

is encountered. At that point,

the transfer of data stops. The

Finish

command must be called to assert Attention and release any

pending holdoffs to be ready for the next action.

SendCmd

SYNTAX

int pascal SendCmd(DevHandleT devHandle, unsigned char

*commands, int len);

devHandle

refers to an interface handle.

commands

points to a string of command bytes to be sent.

len

is the length of the command string.

RESPONSE

None

MODE

CA

BUS STATES

User-defined

SEE ALSO

SendData, SendEoi

EXAMPLE

char command[] = “U?0";
errorcode = SendCmd(ieee, &command, sizeof command);

The

SendCmd

command sends a specified string of bytes with Attention (

ATN

) asserted, causing the

data to be interpreted as IEEE 488 command bytes.

SendData

SYNTAX

int pascal SendData(DevHandleT devHandle, unsigned char

*data, int len);

devHandle

refers to an interface handle.

data

points to a string of data bytes to be sent.

len

is the length of the data string.

RESPONSE

None

MODE

Any

BUS STATES

User-defined

Advertising