LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choosing what data to plot in realtime

Solved!
Go to solution

Hello, I was wondering if anyone knows of how or if there is a subvi so you can toggle between what data will come up on a waveform chart while the program is running. I have three forces coming into waveform chart vs. time. I can view them all on the graph in real-time, but I was wondering if it's possible to switch between just Fx vs. time, just Fy vs. time, or all forces vs. time, etc.

 

Any help would be much appreciated.

Thanks! 

 

0 Kudos
Message 1 of 5
(2,873 Views)

I would suggest that you could use a control to select whitch plots to make active (Property node> Active Plot) and whitch plots to make visable (Property node. Plot.Visable)

 

And use a nice event structure to determine what to show the user.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 5
(2,870 Views)

Thanks for the response.

But we haven't learned in class how to use event structures really. Do you know of any good example vi's that could tie my problem together. Or would it be possible to whip up a quick vi that i could see.

Thanks again. 

0 Kudos
Message 3 of 5
(2,858 Views)

Labviewpadawan wrote:

Thanks for the response.

But we haven't learned in class,..... how to use event structures really. Do you know of any good example vi's

Thanks again. 


That's Great- You can get ahead of your class by looking at the examples finder for event structures.  Also, Read the help section "Caveats when using events"

 

The properties I mentioned earlier will show/hide any plot you chose on any graph.  The event structure seems, to me, to be ideal for calling these nodes since the user gets to select what and when.  Sometimes its better to think for the user and just show whats realistic.  If you need any help with wiring an example after looking at the help and examples post what you have so far and you'll likely get some great tips and pointers.   For students though.... Well, we'll look and offer advice that'll get you any grade you want but, we won't do it for you. Smiley Wink

Message Edited by Jeff Bohrer on 03-30-2010 08:09 PM

"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 5
(2,856 Views)
Solution
Accepted by Labviewpadawan

There is also a very simple example on our community page.  You can find it here.

 

As for event structures, Jeff is right, there are some great examples in the LabVIEW example finder.

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
Message 5 of 5
(2,830 Views)