Setup Example

image\head10.gif VB.NET

Dim Ret, Reg, Preg As Integer

Reg = 0  ' Register(Data in) specification

Ret = GpReadreg(Reg, Preg)

 

image\head10.gif C

DWORD Ret, Reg, Preg;

Reg = 0; /* Register(Data in) specification */

Ret = GpReadreg(Reg, &Preg);

 

image\head10.gif C#

uint Ret, Reg, Preg;

Reg = 0  /* Register(Data in) specification */

Ret = gpib.Readreg(Reg, out Preg);

 

image\head10.gif Python

Ret, Reg, Preg = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Reg.value = 0 # Register(Data in) specification

Ret.value = GpibPy.GpReadreg(Reg, ctypes.byref(Preg))