GpTalkExBinary

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

 

 

image\head10.gif Operation            Transmits data. When transmits binary data by VB, use GpTalkExBinary..

 

image\head10.gif 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)

 

image\head10.gif Mode                   Master mode / Slave mode

 

image\head10.gif Parameters          Cmd       :   Command Array

[0] Number of talkers and listeners ( = Number of listeners+1)

(Slave mode = 0)

[1] Talker address

[2] Listener address

image\CONTINUE.gif

[3] Listener address

image\CONTINUE.gif

 

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.)

 

image\head10.gif Notes                       1  There is the following difference in comparison with GpTalk().

 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.