LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any example to use TransposeData()

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

0 Kudos
Message 1 of 2
(2,713 Views)

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:

 

temp1.png

 

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:

 

temp2.png

 

NickB

National Instruments

0 Kudos
Message 2 of 2
(2,692 Views)