Setup Example

image\head10.gif VB.NET

Dim Ret As Integer

Dim Str As String

Dim DblData As Double

 

Str = "DV +0.123E-3"

DblData = 0

Ret = GpCnvStrToDbl(Str, DblData)

(Result)

DblData : 0.000123

 

image\head10.gif C

DWORD Ret;

char Str[256];

double DblData;

 

lstrcpy(Str, "DV +0.123E-3");

DblData = 0;

Ret = GpCnvStrToDbl(Str, &DblData);

(Result)

DblData : 0.000123

 

image\head10.gif C#

uint Ret;

string Str;

double DblData;

 

Str = "DV +0.123E-3";

DblData = 0;

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

(Result)

DblData : 0.000123

 

image\head10.gif Python

Ret = ctypes.c_ulong()

Str = ctypes.create_string_buffer(256)

DblData = ctypes.c_double()

 

Str.value = b"DV +0.123E-3"

DblData.value = 0

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

(Result)

DblData : 0.000123