08-13-2012 07:37 AM
Hi,
I want to use TransposeData() to transpose my 2D array of type char.
char temp[100][100];
for(x = 0; x <= row; x ++)
{
for(y = 0; y <=col; y ++)
temp[x][y]= data[x][y];
}
TransposeData (temp,1, row*col, col);
I am getting row, col, data from other function.TransposeData() is not actually transposing my data and I am also not getting any error for this. I am suspecting the 2nd parameter 'dataType', I am not sure what to give for 'char' data type.I just tried with 1.
Can anyone guide me in this...
Thanks,
Haari
08-22-2012 04:08 PM
Hello Haari -
I'm not sure if you've found the answer to this or not, but you should pass VAL_CHAR for the second parameter. Once you've done that, your code should work as you expect.
Just FYI - when in CVI, you can display the function prototype by pressing ctrl+shift+space when editing. This will bring up a tooltip showing the prototype:
Once you've done that, you can navigate to the parameter you're interested in and get additional help. If the parameter has a little box with a '...' next to it, you can select the button or press ctrl+shift+enter to bring up a helpful dialog or list:
NickB
National Instruments