LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build xcontrol which have a blinking property?

Hi All,
 
I try to build a xcontrol which have a followed function:
 
1. the faceplate of xcontrol is numeric indicator
2. the type of xcontrol is cluster (boolean + integer)
 
Integer value change color of indicator and when boolean value is true indicator start to blink. When I try build xcontrol I noticed that blinking property won't work okay. Is there any way to build blinking property to xcontrol?
 
There is one old thread, but I didn't find a solution:
 
 
BR,
0 Kudos
Message 1 of 3
(2,973 Views)
You can set the blinking property, but an XControl's facade does not run continiously. If you update your XControl blinking property enough times, you may notice that the boolean appears true and other times false. It is not a bug in your code, but rather a timing issue between the blink and when the XControl stops running. Smiley Sad

The behavior of an XControl is more like a VI in a frameless subpanel than a native LV control. When you set the value or a property of an XControl, LabVIEW will configure the underlying parameters and then perform a Run VI.

An example of an XControl that runs in the continiously in the background is available here on the NI Community Board. You might be able to accomplish what you want by using the techniques in this example.

0 Kudos
Message 2 of 3
(2,957 Views)

Hi Philip,

I made such a structure what you suggested. Basically it works okay, but there is one issue. If I write too often new values to my xcontrol it affect blinking frequency. I made a test loop where I wrote new data every 300ms and then I noticed that blinking disappeared. So writing speed must be lower than blinking frequency then everything is okay. Do you have any idea how to change my code structure to avoid this problem? At this moment I can't send code to here 😞

Anyway big thanks to you! Your tips were very useful.

-S

0 Kudos
Message 3 of 3
(2,896 Views)