LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the X scale to Y, and the Y scale to X ?

Instead fo the chart or graph scrolling horizontal, I would like it to scroll verticle, and have the time stamp on the x-axis and full scale on the y-axis
0 Kudos
Message 1 of 5
(2,631 Views)
jbc,

I think that when you hear what will be required to do what you want, that you will likely just go ahead and settle for horizontal scrolling. LabVIEW has no support for the vertical scrolling of a chart.

However; if you are still in need of this functionality, here is what you do:

Use an XY Graph. Create a subVI that handles the vertical scrolling. This function will essentially create your Vertical chart. I won't go into detail, but here are some of the things you will need to do: Swap the X and Y values. Store the new X values in a shift register, and increment them each time to give the effect of a moving graph (Gary Johnson's first edition of Power Programming has a great example of how to do this with a waterfall graph). You will also hav
e to deal with the timestamp. The Y can be made to display the timestamp somehow, but I will leave it to you to figure that out (ok, I don't know). You will then need to pass the values out of this subVI to the input of your xy graph.

Sure, there is a lot missing, but the basic concepts are there. It is a lot of work to do this. Actually, I see it to be quite daunting.

The best I can say is, go with what is there, or good luck.

Sorry I couldn't tell you that there was an easy way to do this.
0 Kudos
Message 2 of 5
(2,631 Views)
jbc,

I think that when you hear what will be required to do what you want, that you will likely just go ahead and settle for horizontal scrolling. LabVIEW has no support for the vertical scrolling of a chart.

However; if you are still in need of this functionality, here is what you do:

Use an XY Graph. Create a subVI that handles the vertical scrolling. This function will essentially create your Vertical chart. I won't go into detail, but here are some of the things you will need to do: Swap the X and Y values. Store the new X values in a shift register, and increment them each time to give the effect of a moving graph (Gary Johnson's first edition of Power Programming has a great example of how to do this with a waterfall graph). You will also hav
e to deal with the timestamp. The Y can be made to display the timestamp somehow, but I will leave it to you to figure that out (ok, I don't know). You will then need to pass the values out of this subVI to the input of your xy graph.

Sure, there is a lot missing, but the basic concepts are there. It is a lot of work to do this. Actually, I see it to be quite daunting.

The best I can say is, go with what is there, or good luck.

Sorry I couldn't tell you that there was an easy way to do this.
0 Kudos
Message 3 of 5
(2,631 Views)
There is an example VI called Variable-Time Chart XY. It should be fairly easy to modify to do what you want (close anyway). On the diagram, swap the inputs to the bundle functions, change the XScale property to YScale. On the front panel, change the X scale formatting to floating point and change the Y scale formatting to relative time.
0 Kudos
Message 4 of 5
(2,631 Views)
> There is an example VI called Variable-Time Chart XY. It should be
> fairly easy to modify to do what you want (close anyway). On the
> diagram, swap the inputs to the bundle functions, change the XScale
> property to YScale. On the front panel, change the X scale formatting
> to floating point and change the Y scale formatting to relative time.

Searching on developer zone, there are two other vertical chart
examples complete with circular buffers.

Greg McKaskle
0 Kudos
Message 5 of 5
(2,631 Views)