LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making custom controls blink

Hi,

I've been trying to build some custom boolean controls and indicators, which works fine, except most of their properties are now useless. In particular, i can't make them blink anymore.

I understand an imported bitmap wouldn't be able to blink, so here's my question : is there a way, or a tool, that will allow me to make custom controls as useful as regular controls ?

Any clue or insight appreciated.

Silent.
0 Kudos
Message 1 of 6
(5,850 Views)
This is very easy just use a property node. This is exactly how to execute this. Fist create the type of control button(ETC) you want on the front panel. Then right click on the control and scroll down until you see the creat property node. This icon will appear in the diagram window. Tab your control until the hand appears and then click on the wording on the property node. A complete list of different attributes will appear. Change the binking to a read (if it isn't already) and attach a True constant to it. This will cause you controller to blink.....;)
Tim Burroughs
email:tburroughs@labratsengineering.com
email:tburroughs@northropgrumman.com
0 Kudos
Message 2 of 6
(5,850 Views)
> I understand an imported bitmap wouldn't be able to blink, so here's
> my question : is there a way, or a tool, that will allow me to make
> custom controls as useful as regular controls ?
>
> Any clue or insight appreciated.


If you want to make something like this blink, I'd recommend hiding,
showing, hiding, showing, ...

Color changes will not affect the bitmap, so you can change size,
visibility, or the color of something like the text on the button or the
button's name.

Greg McKaskle
0 Kudos
Message 3 of 6
(5,850 Views)
I see... so there's no way to make a "labview-like" custom.. i'll try the hiding/showing idea though, thanks 🙂

And Tim, thank you as well, i knew that already... but it doesn't work with controls made of imported pictures afaik.

Thanks for your time though

Silent
0 Kudos
Message 4 of 6
(5,850 Views)
I have never found a program that allows the user to create LabVIEW pretty controls. I do have a couple of workarounds though.

You could put the custom controls on top of square classic control and color the classic contol to be the background color. Then you can make the classic control blink to draw attention to your control.

You can also use a classic picture ring that is colored transparent and programatically toggle to the binking image.

Variation on the theme:
You can import a PNG image with transparent colors and place it on top of another control which blinks allowing for the transpartent part of the image to become colored.
Message 5 of 6
(5,850 Views)

I know this thread is old but I came across it while trying to do the same thing.  This was my solution.

It will make the LED flash until you push it and then the code will continue to execute.  I use it for error

Acknowledgement on my vision inspection routine.

 

0 Kudos
Message 6 of 6
(5,255 Views)