Copies double-precision values from a Windows memory buffer into an array.
The buffer is used by devices that support input scanning of scaled data, for example devices that call cbAInScan() using the ScaleData option. Create the buffer with ScaledWinBufAllocEx(). See hardware-specific information to determine if the device supports scaled data.
Member of the MccService class.
VB .NET
Public Shared Function ScaledWinBufToArray(ByVal memHandle As IntPtr, ByVal dataArray As Double(), ByVal firstPoint As Integer, ByVal numPoints As Integer) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo ScaledWinBufToArray(IntPtr memHandle, double[] dataArray, int firstPoint, int numPoints)
The following methods are deprecated, and should only be used for legacy applications. The methods above are preferred, and must be used for 64-bit application development.
VB .NET
Public Shared Function ScaledWinBufToArray(ByVal memHandle As Integer, ByRef dataArray As Double, ByVal firstPoint As Integer, ByVal numPoints As Integer) As MccDaq.ErrorInfo
C# .NET
public static MccDaq.ErrorInfo ScaledWinBufToArray(int memHandle, out double dataArray, int firstPoint, int numPoints)
memHandle
The memory handle that was returned by ScaledWinBufAllocEx() when the buffer was allocated. The buffer should contain the data that you want to copy.
dataArray
A pointer to the start of the destination array to which the data samples are copied.
firstPoint
The index of the first sample to copy from the buffer.
numPoints
The number of samples to copy into dataArray.