Admin Production ni-theme
Current Publication

ConvertArrayType

LabWindows/CVI

ConvertArrayType

void ConvertArrayType (void *sourceArray, int sourceDataType, void *targetArray, int targetDataType, size_t 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 int 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 int 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 size_t 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.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later