Boards that Support the Function
Operation Transmits data. When transmits binary data by VB, use GpTalkExBinary..
Format
(VB.NET)
Dim Srlen, Ret As Integer
Dim Cmd(xxxx) As Integer ' (xxxx specifies the maximum number of command arrays)
Dim Srbuf As String
Ret = GpTalkEx(Cmd, Srlen, Srbuf)
(C)
DWORD Srlen, Ret;
DWORD * Cmd;
char * Srbuf;
Ret = GpTalkEx(Cmd, &Srlen, Srbuf);
(C#)
uint Srlen, Ret;
uint[] Cmd = new uint[xxxx]; /* (xxxx specifies the maximum number of command arrays) */
string Srbuf;
Ret = gpib.TalkEx(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 = (ctypes.c_ubyte * xxxx)() # (xxxx specifies the maximum amount of data)
Ret.value = GpibPy.GpTalkEx(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
240 : ESC key pressed
242 : Miss in address specified
243 : Miss in buffers
252 : GP-IB error
254 : Timeout
255 : Illegal call
(See "Return Values" for details.)
Notes 1 There is the following difference in comparison with GpTalk().
The number which was actually transmitted can be received.
It can include delimiter transmitted automatically to the number by the setup of GpBoardstsEx(32H) (It isn't counted by the default).
It can try not to transmit delimiter automatically by the setup of GpBoardstsEx(31H) (It is transmitted by the default).
2 About Command array :
Since the number of commands to be sent is given to Cmd[0], specify 0 for Cmd[0] in slave mode.
3 1Mbyte will be sent if transmit data length = 0.