ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Swap X and Y axis on a waveform chart

I'm trying to set a waveform chart to have the data flowing from bottom to top instead of left to right. I guess I have to swap the position of both axis but how? Any hint?

Thanks in advance

Martin LV6.0.2
0 Kudos
Message 1 of 7
(6,673 Views)
The X-Y Graph can have the data however you want it, but it is not a chart. If you can handle the updates and the changes on the time axis in your code to simulate the chart effect this might work. I have not tried it.

Lynn
Message 2 of 7
(6,666 Views)
Yep, the answer is using an XY-Graph.

I attached a small example that acts like a vertical chart.

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 3 of 7
(6,648 Views)
This is Philips code as a jpg so you can duplicate in LV 6.02.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 7
(6,645 Views)

Hi

I am looking to do something similair but with multiple plots. I have accomplished this in the X-Y graph but I get an ugly retrace line.

- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 5 of 7
(6,436 Views)

Insert a single "NaN" between the end of one plots and the start of the second. Since LV can't plot "NaN" it will "lift the pen" when it sees a "NaN".

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 7
(6,429 Views)
Check the context help for xy-graph.
 
You are only plotting a single plot. To plot multiple, use an array of plots, each consisting of a cluster of xy data.
 
If you want to get rid of the retrace in a single plot, insert data with NaN between the two parts. A NaN will break the interpolation line.
Message 7 of 7
(6,428 Views)