05-13-2025 02:51 AM
Hi NI Community,
I’m trying to figure out how to control two different waveform graphs using a Boolean switch. Specifically, I want the Boolean switch to determine which graph is displayed: when the switch is on, it should show one waveform graph, and when the switch is off, it should show the other.
I would appreciate any tips or suggestions on how to set this up!
Thanks in advance!
05-13-2025 03:06 AM
Hi engineer,
@electronicengineer wrote:
I want the Boolean switch to determine which graph is displayed: when the switch is on, it should show one waveform graph, and when the switch is off, it should show the other.
THINK DATAFLOW: when you want to have "different code in cases" then this code belongs "into cases"…
Why do you need two graph indicators? Would it make sense to show one or more plots on just one graph?
05-13-2025 03:18 AM
I understand your suggestion about dataflow and using case structures, which could be useful if I was working with a single graph. However, in this case, the college practical assignment requires two graphs, so that's why I need to manage both of them with the Boolean switch.
05-13-2025 03:25 AM
Hi engineer,
@electronicengineer wrote:
I understand your suggestion about dataflow and using case structures,
…
that's why I need to manage both of them with the Boolean switch.
When you understand my suggestion then it is no problem to handle both graphs…
05-13-2025 08:40 AM
Although @GerdW's native language isn't English, he made a wonderful pun. Try saying his suggestion
THINK DATAFLOW: when you want to have "different code in cases" then this code belongs "into cases"…
and as you approach the last clause, be sure to say each syllable clearly.
Bob Schor
05-13-2025 03:28 PM
You can right click on top of the graph indicator and create a Property Node - VIsible. THen you can wire teh boolean swith to change the property to visible or not. Do the same for both graphs and you will have what you need.
05-14-2025 03:59 AM
One example among many:
The simplest solution is to send both to the same graph and show Visibility checkbox