Setup Example

image\head10.gif VB.NET

Dim SfxFlag, Ret As Integer

Dim HeaderStr, UnitStr, SepStr As String

 

HeaderStr = "DV"

UnitStr = ""

SepStr = ","

SfxFlag = 0

Ret = GpCnvSettings(HeaderStr, UnitStr, SepStr, SfxFlag)

 

image\head10.gif C

DWORD SfxFlag, Ret;

char HeaderStr[5], UnitStr[5], SepStr[5];

 

lstrcpy(HeaderStr, "DV");

lstrcpy(UnitStr, "");

lstrcpy(SepStr, ",");

SfxFlag = 0;

Ret = GpCnvSettings(HeaderStr, UnitStr, SepStr, SfxFlag);

 

image\head10.gif C#

uint SfxFlag, Ret;

string HeaderStr, UnitStr, SepStr;

 

HeaderStr = "DV";

UnitStr = "";

SepStr = ",";

SfxFlag = 0;

Ret = gpib.CnvSettings(HeaderStr, UnitStr, SepStr, SfxFlag);

 

image\head10.gif Python

SfxFlag, Ret = ctypes.c_ulong(), ctypes.c_ulong()

HeaderStr, UnitStr, SepStr = ctypes.create_string_buffer(5), ctypes.create_string_buffer(5), ctypes.create_string_buffer(5)

 

HeaderStr.value = b"DV"

UnitStr.value = b""

SepStr.value = b","

SfxFlag.value = 0

Ret.value = GpibPy.GpCnvSettings(HeaderStr, UnitStr, SepStr, SfxFlag)