GpCnvCvd

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

 

 

image\head10.gif Operation             8-bytes binary data(IEEE format) is changed into double(Double) value.

 

image\head10.gif Format                 

(VB.NET)

Dim Ret As Integer

Dim Str(8) As Byte

Dim DblData As Double

Ret = GpCnvCvd(Str, DblData)

 

(C)

DWORD Ret;

BYTE Str[8];

double DblData;

Ret = GpCnvCvd(Str, &DblData);

 

(C#)

uint Ret;

byte[] Str = new byte[8];

double DblData;

Ret = gpib.CnvCvd(Str, out DblData);

 

(Python)

Ret = ctypes.c_ulong()

Str  = (ctypes.c_ubyte * 8)()

DblData = ctypes.c_double()

Ret.value = GpibPy.GpCnvCvd(Str, ctypes.byref(DblData))

 

 

image\head10.gif Mode                   Master mode / Slave mode

 

image\head10.gif Parameters          Str          :  Binary data arrangement to change.

Specifies 8-bytes binary data (IEEE double precision format)

DblData    :  Changed double value (Double value in VB, return value)

Ret          :  Return value

0      :  Normal completion

255   :  Illegal call

(See "Return Values" for details.)

 

image\head10.gif Notes                  1 Binary data set up in this function must be satisfied the following conditions.

2 Changed data are only 8 bytes. Data on 9 bytes and more are ignored from the head.

3 Data on the first byte in the data are changed by the default as an 'Sign Bit'. Use GpCnvCvSettings when you want to change data on the last byte as 'Sign Bit'.

4 This function can be used even if it isn't called a GpIni.

5 This function provides the function which is about equal to the CVD function of QuickBasic.