Boards that Support the Function
Operation Asynchronous transmission is executed.
Format
(VB.NET)
Dim Srlen, Ret As Integer
Dim Cmd(xxxx) As Integer ' (xxxx specifies the maximum number of command arrays)
Dim Srbuf(xxxx) As Byte ' (xxxx specifies the maximum amount of data)
Ret = GpTalkAsync(Cmd, Srlen, Srbuf)
(C)
DWORD Srlen, Ret;
DWORD * Cmd;
char * Srbuf;
Ret = GpTalkAsync(Cmd, &Srlen, Srbuf);
(C#)
uint Srlen, Ret;
uint[] Cmd = new uint[xxxx]; /* (xxxx specifies the maximum number of command arrays) */
string Srbuf;
Ret = gpib.TalkAsync(Cmd, out Srlen, Srbuf);
(Python)
Srlen, Ret = ctypes.c_ulong(), ctypes.c_ulong()
Cmd = (ctypes.c_ulong * xxxx)() # (xxxx specifies the maximum number of command arrays)
Srbuf.value = (ctypes.c_ubyte * xxxx)() # (xxxx specifies the maximum amount of data)
Ret.value = GpibPy.GpTalkAsync(Cmd, ctypes.byref(Srlen), Srbuf)
Mode Master mode/Slave mode
Parameters Cmd : Command array
[0] Number of talkers and listeners ( = Number of listeners+1)
(Slave mode = 0)
[1] Talker address
[2] Listener address
[3] Listener address
Srlen : (IN)Transmit data length (byte)
(OUT) Transmit data length actually (byte)
Srbuf : Transmit data
SrbufB : Transmit data array(for binary)
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
242 : Miss in address specified
243 : Miss in buffers
252 : GPIB error
254 : Timeout
255 : Illegal call
(See "Return Values" for details.)
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/240/242/252/254 and 255 are not returned directly from this function. These values are returned to 'ErrCode' that is 2nd parameter of GpCheckAsync().
3 About Command Array :
Since the number of commands to be sent is given to Cmd[0], specify 0 for Cmd[0] in slave mode.
4 1Mbyte will be sent if transmit data length = 0.