VB.NET
Dim Ret As Integer
Dim Str(2) As Byte
Dim ShtData As Short
Str(0) = &H10
Str(1) = &H00
ShtData = 0
Ret = GpCnvCvi(Str, ShtData)
(Result)
ShtData : 0x1000(4096)
C
DWORD Ret;
BYTE Str[2];
short ShtData;
Str[0] = 0x10;
Str[1] = 0x00;
ShtData = 0;
Ret = GpCnvCvi(Str, &ShtData);
(Result)
ShtData : 0x1000(4096)
C#
uint Ret;
byte[] Str = new byte[2];
short ShtData;
Str[0] = 0x10;
Str[1] = 0x00;
ShtData = 0;
Ret = gpib.CnvCvi(Str, out ShtData);
(Result)
ShtData : 0x1000(4096)
Python
Ret = ctypes.c_ulong()
Str = (ctypes.c_ubyte * 2)()
ShtData = ctypes.c_short()
Str[0] = 0x10
Str[1] = 0x00
ShtData.value = 0
Ret.value = GpibPy.GpCnvCvi(Str, ctypes.byref(ShtData))
(Result)
ShtData : 0x1000(4096)