GpQcal

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

 

 

image\head10.gif Operation             Queries the automatic configuration result. (*CAL?)

 

image\head10.gif Format                 

(VB.NET)

Dim Adr, Srlen, Ret As Integer

Dim Srbuf As String

Ret = GpQcal(Adr, Srlen, Srbuf)

 

(C)

DWORD Adr, Srlen, Ret;

char * Srbuf;

Ret = GpQcal(Adr, &Srlen, Srbuf);

 

(C#)

uint Adr, Srlen, Ret;

StringBuilder Srbuf = new StringBuilder(xxxx); /* (xxxx specifies the maximum amount of data.) */

Ret = gpib.Qcal(Adr, out Srlen, Srbuf);

 

(Python)

Adr, Srlen, Ret = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Srbuf = ctypes.create_string_buffer(xxxx) #(xxxx specifies the maximum amount of data.)

Ret.value = GpibPy.GpQcal(Adr, ctypes.byref(Srlen), Srbuf)

 

image\head10.gif Mode                   Master mode only

 

image\head10.gif Parameters

Adr          :  Destination device address

Valid range : 0 to 30

 

Srlen        :  (Input value) Maximum data length in bytes that can be received

(Return value) Receive data length in bytes

 

Srbuf        :  Receive buffer

 

Ret           :  Return value

0      :  Normal completion

1      :  Delimiter and EOI reception complete

2      :  EOI reception complete

80     :  GpIni() hasn't execute

128   :  Receive data overflow

140   :  Asynchronous function is executing now

240   :  ESC key pressed

242   :  Miss in address specified

243   :  Miss in buffers

252   :  GP-IB error

253   :  There is no receive data

254   :  Timeout

255   :  Parameter error

(See "Return Values" for details.)

 

image\head10.gif Notes

1) This function cannot be used for a device that does not support IEEE-488.2.

 

2) See GpListen for notes about receive buffer and receive data length in bytes.