GpibSetTimeOut


Function

Sets TimeOut.

Format

Ret = GpibSetTimeOut (  Id, TimeOut)

Parameter

Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Specifies DevID or EqpID.

Whichever it specifies, operation does not change.

 

TimeOut [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

Sets TimeOut.

 

1 to 147483647(7FFFFFFFH)

TimeOut (Value * [mSec])

0

No timeout

Return Value

Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

 

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

11402

The value of TimeOut is outside the designated range

The others (See also: Details of Error Code)

Initial Value

TimeOut

10000

10 Sec

Remarks

 

Example

Sets timeout to 1 Sec.

C

long TimeOut;

TimeOut = 1000;

Ret = GpibSetTimeOut ( Id, TimeOut );

See Also

GpibSendData | GpibRecData | GpibGetTimeOut