LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array blink indicator

Solved!
Go to solution

Hi,

 

Basically I have two same size arrays for control and indicator.

If I enable some elements in "array", and I like to see "indicator" array to blink

during the execution.

 

Labview version used: 8.6.1

I attached test case for your reference.

 

Can someone help me on this?

 

Thanks.

0 Kudos
Message 1 of 20
(6,916 Views)

It's not clear what you want to do.

 

What do you mean by "enable some array elements"?

 

When I run your VI, all kinds of weird things happen.  For one, I don't know why your Array control blinks since you don't have any property nodes associated with it.

I don't know why you have the one array called "Indicator" and it is actually a control.

 

Can you more clearly state what it is you are trying to do and why?

0 Kudos
Message 2 of 20
(6,900 Views)

O.K.

Basically I want show using "indicator" to blink if  the "array" is enabled.

For example, if I click the one element on "array", I want to have

such a relationship with "indicator" so that it blink while it is running.

The "running" is simulated by timer with 2000ms.

 

Thank you in advance. 

0 Kudos
Message 3 of 20
(6,875 Views)

Hi,

 

I have attached simpler version.

In this one you will see property node called, "arryElem.Blinking".

My question is how do I associate this node to specific element,

so that I only blinks the one I enabled by control array.

 

Thanks.

0 Kudos
Message 4 of 20
(6,870 Views)

Hi horanyee,

 

in an array all elements share the same properties, the only difference is the value of the element.

So when you set one element to blink, all elements blink...

 

In a cluster you can set individual properties for the elements!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 20
(6,858 Views)

I too have often wanted to call attention to a given array element. I either change it to a cluster or give up.

The only method I know of is to programmatically select an element...

 

arrsel.gif

Richard






0 Kudos
Message 6 of 20
(6,842 Views)

Broken Arrow wrote:

I too have often wanted to call attention to a given array element. I either change it to a cluster or give up.

The only method I know of is to programmatically select an element...

 


Idea market? How about putting all those elements in another array? 😄

0 Kudos
Message 7 of 20
(6,831 Views)
Solution
Accepted by horanyee

maybe something like this?

 

 

 

0 Kudos
Message 8 of 20
(6,814 Views)

Two hacks for the price of one.  Even after customizing the Blink foreground color, I found that blinking boolean arrays were annoying at best to downright buggy on my system (LV8.2.1).  Just moving the mouse over the indicator would cause trouble.  Plus, I sometimes like to change the blinking color programatically.  Hence hack #1, the old standby of using a timing loop to alternate the True color of the boolean elements. 

 

The second hack is just there since it was a convenient starting VI to implement the first hack, the control array allows at most one true element.  If you don't want this behavior, simply remove the boolean mess in the event case and wire NewVal to the indicator array. I have an alternative which forces at least one element to be true.

Message 9 of 20
(6,777 Views)
Message Edited by Darin.K on 09-03-2009 05:35 PM
0 Kudos
Message 10 of 20
(6,777 Views)