06-05-2012 09:24 PM
I cant run as im using labview 7.1 .... is there anyway i can make it run ??
06-06-2012 08:13 AM
I'm sorry I can only save back to version 8, I cannot go back any farther. Maybe someone else reading this could?
Again, the problem is that you need to update the visibility properties in your timeout event. You can do this by adding what I've shown in the picture. Again this isn't the best way, but it works. The variables I added in the picture get updated in the BR1, BR2, etc, events then write that value to the switches which will change the properties while your program waits in the timeout case.
When someone presses a button say BR2, that event gets triggered in your structure and you leave the timeout case, the variables for switch 1 goes false, switch 2 true (for BR2 press), switch 3 false, switch 4 false. Your program stores these values in those variables, then (in timeout event) it changes the switches to match these values which will control the graph visibility.
PS if you get this working, changing the mechanical action of the buttons to "switch until released" makes it a tad more intuitive, but this isn't necessary to get the program working.
Good luck.
06-06-2012 08:18 PM
Thanks alot . i think i understand now . 😃
06-06-2012 08:54 PM
anyway i want to ask why when i press BR-1 then i press BR-2 , BR - 1 is still greyed out .
06-07-2012 08:39 AM
That shouldnt be the case.
Here is what I did. I disable the light blue button color (made it grey again), because I couldnt get the colors working out nicely. But I changed eatch button's mechanical action to: "latch when pressed". Right click button in front panel, properties, then operation (or thats how in labview 2011).
Next I made it so that only the selected graph's button gets greyed out. Which is what you wanted right? So if graph 1 is up, button1 is greyed out. And similarily if graph 2 is up, then only button 3 would be greyed out. This lets the user know which one is selected. Attached is a picture of my changes. Just like before, I added some items so carry over your property changes to the "timeout" event. Hopefully this what you wanted?
I hope this helps.
06-08-2012 08:00 AM
If that doesn't work, you could post this question as a new one and I think that would be okay to get some new people helping too becuase I'm not too sure on how to make it work with the blue button color.
Good luck.
06-24-2012 10:00 PM
This is what i've done so far . I need to know why when i press my BR-1 , it won't turn blue .
06-24-2012 11:27 PM
You need to explain your problem better. I don't understand your problem, when I click any of your buttons, they turn blue for an instant until the Latch mechanical action of the buttons returns them to the false state when the terminals are read in the block diagram.
06-25-2012 12:05 AM
What i'm trying to say is when i click BR-1 , it will stay at blue . until i press other buttons , then br-1 will turn back to grey and the buttons that i press will turn to blue .
06-25-2012 12:18 AM
You need to change the button mechanical action to Switch When Released. Then you need to write to local variables or Value property nodes for each of the buttons so that the other buttons are reset to False when a new button is pressed.
Of course you maybe better off just redefining a set of radio buttons to look like your buttons, but I don't think you need to do that. Radio buttons have it built into them to return the other buttons to false when a new button is pressed.