VB.NET
Dim Ret As Integer
Dim Str(4) As Byte
Dim FltData As Single
Str(0) = 62
Str(1) = 51
Str(2) = 246
Str(3) = 224
FltData = 0
Ret = GpCnvCvs(Str, FltData)
(Result)
FltData : 0.1757464
C
DWORD Ret;
BYTE Str[4];
float FltData;
Str[0] = 62;
Str[1] = 51;
Str[2] = 246;
Str[3] = 224;
FltData = 0;
Ret = GpCnvCvs(Str, &FltData);
(Result)
FltData : 0.1757464
C#
uint Ret;
byte[] Str = new byte[4];
float FltData;
Str[0] = 62;
Str[1] = 51;
Str[2] = 246;
Str[3] = 224;
FltData = 0;
Ret = gpib.CnvCvs(Str, out FltData);
(Result)
FltData : 0.1757464
Python
Ret = ctypes.c_ulong()
Str = (ctypes.c_ubyte * 4)()
FltData = ctypes.c_float()
Str[0] = 62
Str[1] = 51
Str[2] = 246
Str[3] = 224
FltData.value = 0
Ret.value = GpibPy.GpCnvCvs(Str, ctypes.byref(FltData))
(Result)
FltData : 0.1757464