# ConvertArrayType

void ConvertArrayType (void *sourceArray, int sourceDataType, void *targetArray, int targetDataType, int numberOfArrayElements);

## Purpose

Converts an array of one data type to an array of another data type.

## Parameters

Input
Name | Type | Description
sourceArray | void * | The source array. The data type must be of the same type selected by the Source Data Type control: character short integer integer float double–precision unsigned short integer unsigned integer unsigned character
sourceDataType | integer | Specifies the data type of the sourceArray. Valid Data Types:
character | VAL_CHAR
short integer | VAL_SHORT_INTEGER
integer | VAL_INTEGER
float | VAL_FLOAT
double–precision | VAL_DOUBLE
unsigned short integer | VAL_UNSIGNED_SHORT_INTEGER
unsigned integer | VAL_UNSIGNED_INTEGER
unsigned character | VAL_UNSIGNED_CHAR
targetDataType | integer | Specifies the data type of the targetArray. Valid Data Types:
character | VAL_CHAR
short integer | VAL_SHORT_INTEGER
integer | VAL_INTEGER
float | VAL_FLOAT
double–precision | VAL_DOUBLE
unsigned short integer | VAL_UNSIGNED_SHORT_INTEGER
unsigned integer | VAL_UNSIGNED_INTEGER
unsigned character | VAL_UNSIGNED_CHAR
numberOfArrayElements | integer | The number of points to be converted from the source array to the target array.
Output
Name | Type | Description
targetArray | void * | The target array. The data type must be of the same type selected by the Target Data Type control: character short integer integer float double–precision unsigned short integer unsigned integer unsigned character

## Return Value

None.