From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

TransposeData

TransposeData

void TransposeData (void *dataArray, int dataType, size_t numberOfPoints, int numberOfChannels);

Purpose

Transposes a two–dimensional array of the specified data type.

This function is especially useful for separating the data from a multi–channel scanning operation into separate channels. For example, if you had an array of data from 5 scans of channels A through C in the following form:

A1 B1 C1 A2 B2 C2 A3 B3 C3 A4 B4 C4 A5 B5 C5

Transposing the data would yield the following array in which the data from each channel is stored contiguously:

A1 A2 A3 A4 A5 B1 B2 B3 B4 B5 C1 C2 C3 C4 C5

Parameters

Input
Name Type Description
dataArray void * Pass the array of data to transpose.
dataType int Pass the data type of the elements in the array.
numberOfPoints size_t Pass the total number of points in the data array.
numberOfChannels int If the data was generated by a series of multi–channel scans, then pass the number of channels in the data. This is the same as the number of columns in the data.

Return Value

None.

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit