GpCommandAsync

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

 

 

image\head10.gif Operation             Sets ATN to True to transmit commands in asynchronous.

 

image\head10.gif Format                 

(VB.NET)

Dim Ret As Integer

Dim Cmd(xxxx) As Integer ' (xxxx specifies the maximum number of command arrays.)

Ret = GpCommandAsync(Cmd)

 

(C)

DWORD Ret;

DWORD * Cmd;

Ret = GpCommandAsync(Cmd);

 

(C#)

uint Ret;

uint[] Cmd = new uint[xxxx]; /* (xxxx specifies the maximum number of command arrays.) */

Ret = gpib.CommandAsync(Cmd);

 

(Python)

Ret = ctypes.c_ulong()

Cmd = (ctypes.c_ulong * xxxx)() #(xxxx specifies the maximum number of command arrays.)

Ret.value = GpibPy.GpCommandAsync(Cmd)

 

image\head10.gif Mode                   Master mode only

 

image\head10.gif Parameters          Cmd       : Command array

[0] Number of commands

[1] Command data

[2] Command data

image\CONTINUE.gif

 

Ret        : Return value

0      : Normal completion

80     : GpIni() hasn't execute

140   : Asynchronous function is executing now

190   : Cannot create the Event object

200   : Cannot create new thread

'ErrCode' of GpCheckAsync()

0      : Normal completion

141   : Stop by GpStopAsync()

240   : ESC key pressed

252   : GP-IB error

254   : Timeout

255   :  Illegal call

(See "Return Values" for details.)

 

image\head10.gif Notes                   1 The completion of the transmission is monitored with GpCheckAsync(). When it is finished normally, return value of GpCheckAsync() is 0 and ErrCode (2nd parameter) is 0.

                               2 The return value of 141/252/254 and 255 are not returned directly from this function. These values are returned to 'ErrCode' that is 2nd parameter of GpCheckAsync().

                               3 As for the GPIB command (multi-line message), refer to a "Additional Information GPIB Command List".