beautypg.com

Timeout – Measurement Computing Personal488 rev.3.0 User Manual

Page 126

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-58

TimeOut

Syntax

INT WINAPI TimeOut(DevHandleT devHandle, DWORD millisec);

devHandle

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

millisec

is a numeric value given in milliseconds.

Returns

-1

if error

Bus States

None

Example

errorcode = TimeOut(ieee,100);

Sets the timeout value to 100 msec.

See Also

TimeOutQuery, Reset

The

TimeOut

command sets the number of milliseconds that Driver488 waits for a transfer before

declaring a timeout error. The timeout value sets a limit on the total time allowed for an operation. For
example, when using the Enter command all expected data must be received within the specified timeout
period or a timeout error will occur.

Timeout checking may be suppressed by specifying a timeout value of zero seconds. The zero seconds
specification results in a timeout period of about 49 days.

This manual is related to the following products: