07-26-2018 02:44 PM
Setup:
I only want to display one plot legend on the front panel for four different plots that show different aspects of the same signal. Signals have a tendency to overlap each other and so it is beneficial to be able to toggle them off. This context menu setting is available even after the VI has stopped running.
Question:
What is the easy way to convey that change to the other plot menus? (I'm thinking it is related to references but can't figure out the recipe.
Other links:
This has some hints, but doesn't go far enough. https://forums.ni.com/t5/Example-Programs/Programmatically-Change-Visible-Plots-on-Waveform-Graph-Us...
Solved! Go to Solution.
07-26-2018 02:47 PM
07-26-2018 02:56 PM
I would start with an event structure that is configured for "Waveform Chart" Plot Attribute CHange".
It returns the plot index and ref so that you determine if was shown or hidden.
Then use the "Active Plot" and "Plot Visible" property for the other charts...
Ben
07-26-2018 02:58 PM
I have a method that works while the program is running. However, the context menu for a waveform works even if the program isn't running. I'm looking for a way to accomplish this change in all the waveforms from the one context menu.
07-26-2018 03:02 PM
@eximo wrote:
I have a method that works while the program is running. However, the context menu for a waveform works even if the program isn't running. I'm looking for a way to accomplish this change in all the waveforms from the one context menu.
It is easier to keep the VI running.
Otherwise you will have to create an XControl which is a custom control where you write the code that runs it. Not trivial. At one time the help for the XControl said it should only be developed by an architect that understand performance in LV etc.
Ben