05-31-2012 04:50 AM
I don't know why when i press my buttons , my graph won't stay . And at the start of the program my wave chart is missing .
Attached is my work . need help ...
Solved! Go to Solution.
05-31-2012 04:58 AM
You use Default connectors outputs from your event structure. Default of boolean is False, thus every timeout you'll get a Visible False on your graphs.
Also, it's better to place your control terminals inside their events.
/Y
05-31-2012 05:08 AM
What exactly are you trying to achieve? All 4 of your graphs show exactly the same data.
Are you just trying to change the colour of the plot on a single graph? If so, there are much easier ways to do this (no need for separate graphs)
-CC
p.s. property nodes execute from the top downwards, so the active plot needs to be selected before you change it's colour.
06-01-2012 02:01 PM
This is because your event structure is set up wrong. 99% of the time its going to be in your "timeout" structure, and you dont have anything going to your visible property nodes in the "timeout" section of your event structe. This is why only on button clicks (like BR1 mouse up) that the graph displays for a second, then it disappears when you go back into the timeout event.
06-01-2012 02:08 PM
Okay - You can disable the switches I added, but is this more what you were going for? You need to add something in the timeout loop that controls the graphs visibility. I'm not very good at this yet, so there is probably a better solution that this, but at least I found the problem 🙂
06-04-2012 12:56 AM
I can't open the file as im using labview 7.1 . I need 4 graphs as stated by my supervisor where i can adjust the states of the waveform . can u take a screen shot of your block diagram so i can see what i can do from there . thanks .
06-04-2012 08:15 AM - edited 06-04-2012 08:17 AM
Okay, here are 3 pics.
I didn't know a really good way to do this, but what I did was added a switch for BR1 and BR2. You wont actually use the switches in the front panel, they can be invisible. How they are controlled is in the BR1 and BR2 events as shown in the pictures. On the right side, I added local variables (for the 2 switches) which are controlled by the boolean constants that you made.
This will sort of carry your visible decision forward to the timeout event, where you program spends most of its time. Hopefully this will make sense?
06-04-2012 10:03 AM - last edited on 10-09-2024 10:35 AM by Content Cleaner
This might be more what you are looking for: "select signals.vi", I just happend to run across this and thought this would help.
06-05-2012 04:42 AM
I don't think its working . what i need to do for now is when i press BR-1 , wave form chart 1 will show then if i press br - 2 wave form 2 will show . i tried to change the constant but it will stay but the wave won't run .
06-05-2012 08:09 AM
Each button press changes graph to the coressponding graph. BR1 changes to graph 1, BR2 to 2 etc. I made this work for all 4 buttons. I think this is what you want?