設定例

VB.NET用

Dim Ret, Dmamode, Dmach As Integer

Dmamode = 2   ' FIFO使用

Dmach = 3

Ret = GpDma(Dmamode, Dmach)

 

C言語用

DWORD Ret, Dmamode, Dmach;

Dmamode = 2;   /* FIFO使用 */

Dmach = 3;

Ret = GpDma(Dmamode, Dmach);

 

C#用

uint Ret, Dmamode, Dmach;

Dmamode = 2;   /* FIFO使用 */

Dmach = 3;

Ret = gpib.Dma(Dmamode, Dmach);

 

■Python用

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

Dmamode.value = 2   # FIFO使用

Dmach.value = 3

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