Boards that Support the Function
Operation Queries all macro definitions. (*LMC?)
Format
(VB.NET)
Dim Adr, Srlen, Ret As Integer
Dim Srbuf As String
Ret = GpQlmc(Adr, Srlen, Srbuf)
(C)
DWORD Adr, Srlen, Ret;
char * Srbuf;
Ret = GpQlmc(Adr, &Srlen, Srbuf);
(C#)
uint Adr, Srlen, Ret;
StringBuilder Srbuf = new StringBuilder(xxxx); /* (xxxx specifies the maximum amount of data.) */
Ret = gpib.Qlmc(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.GpQlmc(Adr, ctypes.byref(Srlen), Srbuf)
Mode Master mode only
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.)
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.