LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help

Solved!
Go to solution

I cant run as im using labview 7.1 .... is there anyway i can make it run ?? 

0 Kudos
Message 11 of 29
(1,151 Views)

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. 

 

 

 

 

Message 12 of 29
(1,134 Views)

Thanks alot . i think i understand now . 😃 

0 Kudos
Message 13 of 29
(1,109 Views)

anyway i want to ask why when i press BR-1 then i press BR-2 , BR - 1 is still greyed out . 

0 Kudos
Message 14 of 29
(1,101 Views)

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. 

Message 15 of 29
(1,069 Views)
Solution
Accepted by topic author visualrhythm

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. 

Message 16 of 29
(1,046 Views)

This is what i've done so far . I need to know why when i press my BR-1 , it won't turn blue . 

0 Kudos
Message 17 of 29
(1,001 Views)

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.

0 Kudos
Message 18 of 29
(988 Views)

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 . 

0 Kudos
Message 19 of 29
(983 Views)

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.

0 Kudos
Message 20 of 29
(977 Views)