LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Blinking of a single element in 2D array

Hi all,

 

I have a 2D array of clusters. The elements of the cluster are 3 different numeric data types.

 

Now, I want to programmatically blink a single element of the above mentioned 2D array (cluster as whole). Also I want to blink a single element of the cluster residing in the 2D array. Pl suggest me if there is any better way to execute this.

 

will be great to have your views.

 

-Sreedhar

0 Kudos
Message 1 of 8
(3,793 Views)

Hi Sreedhar,

 

in an array all elements share the same properties. Their only difference is the value. So you can't set a single element to blink...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(3,790 Views)

Funny undefined behaviour^^ Initial state undefined; hover with mouse over the control to hightlight arrayelements. Ups

 

RZM

0 Kudos
Message 3 of 8
(3,782 Views)

Thanks for your replies. I would like to know weather it would work, if I make it a cluster of clusters ? how will the performance hit ?

 

Thanks again.

0 Kudos
Message 4 of 8
(3,757 Views)

Sreedhar T wrote:

Thanks for your replies. I would like to know weather it would work, if I make it a cluster of clusters ? how will the performance hit ?

 

Thanks again.


Yes that will work!

 

The performance only becomes a factor if you are repeatedly moving data around. No move, no load.

 

Ben 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 8
(3,751 Views)

Excellent...

 

Ben, could you please explain me what is the meaning of "Moving data around. No Move, No Load".

 

since it is a cluster of some elements, I will dynamically change the data. change the colours at the run time, blink etc. But will not move the cluster.

 

Regards

0 Kudos
Message 6 of 8
(3,706 Views)

Sreedhar T wrote:

Excellent...

 

Ben, could you please explain me what is the meaning of "Moving data around. No Move, No Load".

 

....

Regards


Good question!

 

I'll try to answer and if others see holes in this apprach, please corect me.

 

"Moving data" can be spotted by looking for two signs. "Flow" and "Buffers".

 

 

FLOW 

Flow is the easiest to spot and is what you see when you se the data bubbling along while watching your diagram in execution highlight mode (light bulb on).

 

BUFFERS

Buffers are more subtle but you can se them whenever you use Tools>>> Pofile >>> Show buffer allocations. LV will work be hind the scenes to schedule your code to accomplish what you want while minimizing the need to duplicate your buffers. So you have to look for the bufers.

 

So if your code show flow to a buffer the CPU has to do work to accomplish that move.

 

How devistating will A move be? The actually load from a move dpends on how much data is being moved AND how often.

 

I'll call that a start and watch for others to offer their insight.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 8
(3,687 Views)
Another approch could be to set the background to transparent and use a decoration or string behind the control that you move to highlight a single cell. It is a complicated way to ge tthe same effect. Then when you want to blink the whole array you change the array to the color that you want and turn on blinking. It woill take a lot of work but sometimes thats what you have to do.
Tim
GHSP
Message 8 of 8
(3,680 Views)