LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transpose Data

Hello,

 

I the attached VI the data output is:

Labview Automation

06/03/2011:7:44pm

Description

Vcc = 4.6V

Power1: 0.522 dBm

Frequency1: 0.471 MHz

X- Data Y-Data1

10 0.941

20 0.728

30 0.136

40 0.877

50 0.298

Power: 0.935 dBm

Frequency: 0.083MHz

X-Data Y-Data2

10 0.174

20 0.827

30 0.481

40 0.924

50 0.596

Power...

 

Can you tell me how I can go about manipulating the data to get the data as shown below:

Labview Automation

06/03/2011:7:44pm

Description

Vcc = 4.6V

Power1: 0.522 dBm              Power2: 0.935 dBm                   Power3: ...

Frequency1: 0.471 MHz        Frequency2: 0.083 MHz            Frequency2: ...

X-Data         Y-Data1             Y-Data2                                   Y-Data3...

10               0.941                  0.174

20               0.728                  0.827

30               0.136                  0.481

40               0.877                  0.924

50               0.298                  0.596

 

Thanks,

hiNi.

0 Kudos
Message 1 of 4
(2,798 Views)

Hello hiNI

 

Thank It looks like you would eventually want to output data (for example) from your X, Y1, Y2 arrays by one element at a time with potentially a tab delimeter after X and Y1 and a carriage return after Y2.  Similar characters could be applied to the above data as well in order to obtain this result.  Please let me know if I can provide any further clarification.  Would you appreciate an example illustrating this?

 

Thank you very much for choosing National Instruments!

Sincerely,

Greg S.
0 Kudos
Message 2 of 4
(2,755 Views)

Hello,

 

I would sincerely appreciate an example showing this.

 

Thanks,

hiNi

0 Kudos
Message 3 of 4
(2,729 Views)

The trick is to stop thinking like a text-based programmer, and start thinking like a LabVIEW programmer. You're using local variables that are completely useless, and sequence frames to hide code. You also need to learn to deal with arrays. I was bored, so I rewrote your VI so it's clean and easy to read.

 

You're welcome. Smiley Wink

Message 4 of 4
(2,717 Views)