VB.NET
Dim Ret, Adr, Srlen As Integer
Dim Srbuf As String ' Receive buffer
Adr = 3 ' Destination device address
Srlen = 256 ' Maximum data length in bytes that can be received
Ret = GpQidn(Adr, Srlen, Srbuf)
C
DWORD Ret, Adr, Srlen;
char Srbuf[256]; /* Receive buffer */
Adr = 3; /* Destination device address */
Srlen = 256; /* Maximum data length in bytes that can be received */
Ret = GpQidn(Adr, &Srlen, Srbuf);
C#
uint Ret, Adr, Srlen;
StringBuilder Srbuf = new StringBuilder(256); /* Receive buffer */
Adr = 3; /* Destination device address */
Srlen = 256; /* Maximum data length in bytes that can be received */
Ret = gpib.Qidn(Adr, out Srlen, Srbuf);
Python
Ret, Adr, Srlen = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()
Srbuf = ctypes.create_string_buffer(256) # Receive buffer
Adr.value = 3 # Destination device address
Srlen.value = 256 # Maximum data length in bytes that can be received
Ret.value = GpibPy.GpQidn(Adr, ctypes.byref(Srlen), Srbuf)