GpCheckAsync

image\BLTLRGSQ.gifBoards that Support the Function image\SETUP.gif image\SANBTN.gif

 

 

image\head10.gif Operation            The condition of the asynchronous function and the return value of the asynchronous function are acquired.

 

image\head10.gif Format                 

(VB.NET)

Dim WaitFlag, ErrCode, Ret As Integer

Ret = GpCheckAsync(WaitFlag, ErrCode)

 

(C)

DWORD WaitFlag, ErrCode, Ret;

Ret = GpCheckAsync(WaitFlag, &ErrCode);

 

(C#)

uint WaitFlag, ErrCode, Ret;

Ret = gpib.CheckAsync(WaitFlag, out ErrCode);

 

(Python)

WaitFlag, ErrCode, Ret = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Ret.value = GpibPy.GpCheckAsync(WaitFlag, ctypes.byref(ErrCode))

 

image\head10.gif Mode                   Master mode/Slave mode

 

image\head10.gif Parameters

WaitFlag     :   Setting of wait for asynchronous function

0                 : Condition is checkd and returned soon.

Except for 0 : It waits until present time-out time passes when a asynchronous function isn't completed.

 

ErrCode     :   (OUT) Error code of asynchronous function.

 

Ret            :   Return value

0     :Normal completion

80   : GpIni() hasn't execute

140  : Asynchronous function is executing now

254  : Timeout

(See "Return Values" for details.)

 

image\head10.gif Notes

1 Completion is checked by this function when the function of the asynchronism is executed.

 

2 The ErrCode varies according to the asynchronous function. Refer to the  return value of the each asynchronous function.