Copies 32-bit data from a one-dimensional or two-dimensional array into a Windows memory buffer.
Member of the MccService class.
VB .NET
Copies data from a one-dimensional array of integer values:
Public Shared Function WinArrayToBuf32(ByVal dataArray As Integer(), ByVal memHandle As IntPtr, ByVal firstPoint As Integer, ByVal numPoints As Integer) As MccDaq.ErrorInfo
Copies data from a one-dimensional array of System.UInt32 values:
Public Shared WinArrayToBuf32(ByVal dataArray As System.UInt32(), ByVal memHandle As IntPtr, ByVal firstPoint As Integer, ByVal numPoints As Integer) As MccDaq.ErrorInfo
C# .NET
Copies data from a one-dimensional array of integer values:
public MccDaq.ErrorInfo WinArrayToBuf32(int[] dataArray, IntPtr memHandle, int firstPoint, int numPoints)
Copies data from a one-dimensional array of System.UInt32 values:
public MccDaq.ErrorInfo WinArrayToBuf32(uint[] dataArray, IntPtr memHandle, int firstPoint, int numPoints)
dataArray
The array containing the data to be copied. The first dimension should equal the number of channels. The second dimension should equal the number of points/channel.
memHandle
This must be a memory handle that was returned by WinBufAlloc32Ex() when the buffer was allocated. The data will be copied into this buffer.
firstPoint
Index of the first point in the memory buffer where data will be copied to.
numPoints
Number of data points to copy from dataArray.