# ScaledWinArrayToBuf()

Copies double-precision values from an array into a Windows memory buffer.

The buffer is used by devices that support output scanning of scaled data, for example devices that call AOutScan() 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.

## Function Prototype

VB .NET

Public Function ScaledWinArrayToBuf(ByVal dataArray As Double(), ByVal memHandle As IntPtr, ByVal firstPoint As Integer, ByVal numPoints As Integer) As Integer As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo ScaledWinArrayToBuf(double[] dataArray, IntPtr memHandle, int firstPoint, int numPoints)

##### Deprecated methods

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 ScaledWinArrayToBuf(ByRef dataArray As Double, ByVal memHandle As Integer, ByVal firstPoint As Integer, ByVal numPoints As Integer) As Integer As MccDaq.ErrorInfo

C# .NET

public static MccDaq.ErrorInfo ScaledWinArrayToBuf(ref double dataArray, int memHandle, int firstPoint, int numPoints)

## Parameters

dataArray

The array containing the data to be copied.

memHandle

This must be a memory handle that was returned by ScaledWinBufAllocEx() when the buffer was allocated. The data will be copied into this buffer.

firstPoint

Index of the first point in the memory buffer where the data will be copied.

numPoints

Number of data points to copy.

## Returns

- An ErrorInfo object that indicates the status of the operation.

## Notes

- This method is used in conjunction with the ScaleData scan option and ScaledWinBufAllocEx().