LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with blinking

Hello
I have a problem with the propertie blinking of buttons.
I have 2 VI's the first is called frontpanel.vi. It contains a button. I take the referenznumber of thos button and put it in a global variable.

In the other VI called Control.vi i read the Referennumber of the global varaible and take the numer in ther blinking probortie. But there is no funktion. With propertie visible an colour usw is a funktion.

greetings

Thorsten
0 Kudos
Message 1 of 6
(2,919 Views)
Hello,

I attached an example for you,
First run the Main.vi, then the SubVi.vi and you can control the blink of the button in the Main with the control on the SubVi.
Hope this is what you need.

Paulo
0 Kudos
Message 2 of 6
(2,899 Views)
I'm having some problems understanding what your problem is exactly, but the first thing to say is that using a global variable to transfer a refnum can be very problematic unless you time it just right. You may wish to consider using some other means (like VI server).

I'm not sure about the second part - Do you have the visible property? If so, you should also have the Blinking property. If you don't have any properties, start again - create a reference for the original boolean, right click the refenence and select Create>>Control. Copy the new control and paste it in the global variable. Wire the reference into the new global variable in the first VI and wire the global into the property node in the second.
Now you should have the properties.
You will have to run the first VI first, to pass the value of the reference into it, or it won't work.
As said earlier, this is a very unrecommended way for doing this.

___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(2,897 Views)
Thanks Paulo
But i have labview 7.0 and the blink.zip is vor Labview 7.1. Can you convert it for Labview 7.0
Thanks

Greetings
Thorsten
0 Kudos
Message 4 of 6
(2,876 Views)
Here are Paulo's VIs in 7.0.
Notice that he feeds the VALUE of the reference into the global, so the other VI can use it.
Remember that this isn't a very good way for doing this.

___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(2,866 Views)
Thank you Paulo
The problem was that i called the Sub.Vi 1 time an not in a loop.
My programm is verry special it controlled 30 hardwaredevices.So i must create a usercontrollpanel and there i must work with referenznumber into an global variable. There was no other chance to do this, then the programm must run very fast. The main programm called the Usercontroll.vi wich the user work with and so i have only the problem with the blinking. I think i must only run the Usercontroll.vi in a loop.

Thank you for helping me
Thorsten
0 Kudos
Message 6 of 6
(2,863 Views)