LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with changing array of clusters programmatically

Hi,
I have a problem when trying to change the values in an array of clusters programmatically using a property node. The size of the array (number of active elements) is changed at the same time.
 
If the new array of values are larger than the present size of the array, the array are increased in size but the new values are not shown in the array. After pressing the increasment/decreasment scroll or the scoll of the VI-window the values appear. The same thing happens when an element is removed. Then the values that were previosly displayed stays in the array, but are grayed out, until a scoll is pressed. I want the changes to appear right away.
 
If a value is changed in an array element that is active the change appears right away.
 
The problem doesn't appear if the array only consists of numerics, for example, instead of clusters. I have attached an example showing the problem. In the example I have included a comparsion with the case of an array of numerics.
 
Best regards
/Karin
0 Kudos
Message 1 of 3
(2,630 Views)

Hi Karin,

      I can't try your VI unless you save it in 7.1 (using File\save-with-options) however...

try using the defer-panel-updates property to disable/enable the front panel before/after the array change:

 

Message Edited by Dynamik on 12-08-2005 12:11 AM

Message Edited by Dynamik on 12-08-2005 12:12 AM

Message Edited by Dynamik on 12-08-2005 12:13 AM

When they give imbeciles handicap-parking, I won't have so far to walk!
Message 2 of 3
(2,604 Views)

Thank you, Dynamik, it worked fine with the defer-panel-updates property.

I only looked under array properties and didn't find any really good property there. By using the Selection Start[] Property I could get it to work sometimes, but I didn't really figure out exactly how it worked and if it was possible to use it for the purpose I wanted. Using the defer-panel-updates property was simplier and more straight forward.

Best regards

/Karin

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