Setup Example

image\head10.gif VB.NET

Dim Ret, Dmamode, Dmach As Integer

Dmamode = 2  ' FIFO ON

Dmach = 3

Ret = GpDma(Dmamode, Dmach)

 

image\head10.gif C

DWORD Ret, Dmamode, Dmach;

Dmamode = 2; /* FIFO ON */

Dmach = 3;

Ret = GpDma(Dmamode, Dmach);

 

image\head10.gif C#

uint Ret, Dmamode, Dmach;

Dmamode = 2; /* FIFO ON */

Dmach = 3;

Ret = gpib.Dma(Dmamode, Dmach);

 

image\head10.gif Python

Ret, Dmamode, Dmach = ctypes.c_ulong(), ctypes.c_ulong(), ctypes.c_ulong()

Dmamode.value = 2 # FIFO ON

Dmach.value = 3

Ret.value = GpibPy.GpDma(Dmamode, Dmach)