GpTalkBinary

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

 

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 = GpTalk(Cmd, Srlen, Srbuf)

 

(C)

DWORD Srlen, Ret;

DWORD * Cmd;

char * Srbuf;

Ret = GpTalk(Cmd, Srlen, Srbuf);

 

(C#)

uint Srlen, Ret;

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

string Srbuf;

Ret = gpib.Talk(Cmd, 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.GpTalk(Cmd, Srlen, Srbuf)

 

image\head10.gif Mode                   Master mode/Slave mode

 

image\head10.gif Parameters          Cmd       : 

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

(Slave mode = 0)

[1] Talker address

[2] Listener address

image\CONTINUE.gif

 

Srlen       :     Transmit data length (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  Command array:
Since the number of commands to be sent is given to Cmd[0], specify 0 for Cmd[0] in slave mode.

2  1Mbyte will be sent if transmit data length = 0.

3  If you have already used DOS-Version, you do not need to execute Dmainuse function when using FIFO.