beautypg.com

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

Page 368

background image

III. COMMAND REFERENCES - 15. Command References

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

Personal488 User’s Manual, Rev. 3.0

III-353

The

UnTalk

command unaddresses an external device that was addressed to Talk.

Wait

SYNTAX

int pascal Wait(DevHandleT devHandle);

devHandle

refers to either an interface or an external device. If

devHandle

is an

external device, the

Wait

command acts on the hardware interface to which

the external device is attached.

RETURNS

-1 if error

MODE

Any

BUS STATES

Determined by previous Enter or Output command.

SEE ALSO

Enter, Output, Buffered, Status

EXAMPLE

errorcode = Wait(ieee);

The

Wait

command causes Driver488 to wait until any asynchronous transfer has completed before

returning to the user’s program. It can be used to guarantee that the data has actually been received
before beginning to process it, or that it has been sent before overwriting the buffer. It is especially
useful with the

Enter

command, when a terminator has been specified. In that case, the amount that is

actually received is unknown, and so the user’s program must check with Driver488 to determine when
the transfer is done. Time out checking, if enabled, is performed while

Wait

ing.