7,540
社区成员
发帖
与我相关
我的任务
分享
[DllImport("ACTS1011_32.dll")]
public static extern Boolean ACTS1011_ReadDeviceAD(IntPtr hDevice, ref UInt16[] pADBuffer,UInt32 nReadSizeWords,ref Int32 nRetSizeWords, ref Int32 pAvailSampsPoints, double fTimeout);// DMA 方式读取 AD 数据
public IntPtr hDevice;
public UInt16[] pADBuffer=new UInt16[204800];
public UInt32 nReadSizeWords=2048;
public Int32 nRetSizeWords=0;
public Int32 pAvailSampsPoints=0;
public double fTimeout=1;
ACTS1011_ReadDeviceAD(hDevice, ref pADBuffer, nReadSizeWords, ref nRetSizeWords, ref pAvailSampsPoints, fTimeout);