LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem updating an array of clusters that contain guages

Solved!
Go to solution

Hello,

I'm having problems when I write to an array of clusters that contain guages.

I wrote an example program to illustrate the problem.

 

I create an array of cluster of [numeric, numeric].

I populate 4 elements of the array with data.

If I pull out each element with an Index Array function and write the data to 4 indicator clusters independently, I have no problems.

 

If I wire the 4 element array to an array of clusters, the needles on the guages won't redraw properly.

However, simply moving the mouse over the array element causes the display to redraw just that element.

I've played around with Synchronous Display and Defer Panel Updates but they don't seem to affect this behaviour.

 

Any thoughts?

 

A picture of the problem and the VI are attached.

 

Download All
0 Kudos
Message 1 of 9
(3,004 Views)

I can confirm that behaviour with LV2011SP1.

Side effect: When you stop the VI the gauges are drwan correctly...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,995 Views)

I also confirm this behavior with LV2010.  Strange indeed.  I don't have any insight just yet as to the problem.  I would be curious to hear others opinions.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 3 of 9
(2,988 Views)

It also happens on the Mac, so it likely is something within LV and not an OS or video driver issue.

 

Interestingly one element of the array (but not always the same element) seems to update properly while the others do not. Note Index  1 in the  image.  I saw it do this with Index 2 earlier. This also shows in the OPs image.

 

Lynn

Display.png

0 Kudos
Message 4 of 9
(2,982 Views)

@johnsold wrote:

 

Interestingly one element of the array (but not always the same element) seems to update properly while the others do not. Note Index  1 in the  image.  I saw it do this with Index 2 earlier. This also shows in the OPs image.

 

Lynn

Display.png


I too witnessed this same behavior, but it was intermittent.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 5 of 9
(2,979 Views)

And ...

If I remove the clusters, having only discrete guages and an array of guages, the needles redraw properly but the guages themselves flicker.

I'll have to see if defer panel updates fixes the guage flicker.

 

 

0 Kudos
Message 6 of 9
(2,968 Views)

I'm back on this project and wondering if anyone has a solution.

No response from NI?

0 Kudos
Message 7 of 9
(2,942 Views)
Solution
Accepted by topic author ebloohm

When something like this shows up I usually try covering the offending control with a transparent 2D picture.  Sometimes overlapping controls cause problems, sometimes they solve them.

0 Kudos
Message 8 of 9
(2,931 Views)

Awesome!  Thanks.

0 Kudos
Message 9 of 9
(2,925 Views)