LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph multiple plots of differing amplitudes

Greetings everyone. First off, I am using Labview 7.0 as we are waiting for 7.1. Please ensure that any examples are in that format so that I can load them lol. Thanks. Now my problem. I am plotting some resolver data that is being acquired from a high speed PXI DAQ. I have attached the vi that I am working on with the data file embedding into it. As you can see by the vi, it is very rudimentary at this point as I simply wanted a visual of the data. My problem lies in the fact that, ideally, I would very much like to view several of the plots at the same time. I have configured the vi to do that by simply turning the plot on or off with the buttons. I am essentially selecting an individual column of data and displaying it. I can select multiple columns with no problem. However, because some of the data has a very low amplitude and some has a very high ( the range is less than 1 to greater than 4000). How can I scale the high value data so it can be viewed simultaneously with the low value data? Alternatively, is it possible to have multiple Y-Axis ranges at the same time? All the X-Axis data is the same. All the data was acquired simultaneously. To run the vi, simply select the data to view with the appropriate button(s). Y-Axis range can be set with the front panel. I really need some help with this. Thanks in advance.
0 Kudos
Message 1 of 5
(3,059 Views)
"How can I scale the high value data so it can be viewed simultaneously with the low value data? Alternatively, is it possible to have multiple Y-Axis ranges at the same time?"
In an XY grapg, right click on the Yaxis and selct duplicate scale, you will have multiple Y axis scales.

In you case however, because you have so many of these graphs, you may want to normalize the data to 100 % or so.
For each column, get the maximum
then divide each point of the column by that maximum
then multiply by 100
Plot the normalized data instead. The Yaxis will then range go from 0 to 100, for all plots
0 Kudos
Message 2 of 5
(3,050 Views)
Thank you Dr. Imad. It sounds like that may do the trick but I can't visualize how to actually do that. I tried to scale some of the data before and I ended up with a mess lol. Can you throw any more detail my way? I would surely appreciate it.

Thanks again
0 Kudos
Message 3 of 5
(3,049 Views)
Hello Franco.
You can use diffents Y and X scales and associate a plot to a scale.
Download this sample from NI : http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D83356A4E034080020E74861

Attached is a similar sample for graph.

Hope it helps.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 4 of 5
(3,038 Views)
see attached modified vi
0 Kudos
Message 5 of 5
(3,038 Views)