Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread apocow
I just learned how to use property nodes and refnums to modify the values of individual controls inside of a type-defined cluster. But when I incorporate this into an existing and working VI, a weird thing happens: the VI works exactly as it should when it is running, but when I quit the VI, the

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
You can create reference for individual element in the cluster explicitly. To do so, right click on an element inside the cluster, goto Create Reference. See if this helps. -Joe

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread apocow
Thanks for the feedback, Joe. I tried using references to the individual clusters B1 and B2, but that did not alleviate the problem. Though I still do not understand why I am having this problem, I have (somewhat) isolated the source of the problem to the following location: my main VI has a

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread apocow
So it turns out that I am making a common mistake and that, had i done a little more research before posting this question, I would have found my solution in the huge debate about CLOSING REFERENCES. Anyway, the short answer to my own question is that I needed to close all references that were

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread apocow
whoops, that second link is not right. here's the correct one: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101RPAGEID=135HOID=5065000800834CUCATEGORY_0=_49_%24_6_UCATEGORY_S=0USEARCHCONTEXT_QUESTION_0=closing+referencesUSEARCHCONTEXT_QUESTION_S=0

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
It might worth to try to close the reference after each loop. Creating a reference is an expensive (CPU cycles) operation. If the reference is closed, labview will close them when closing the VI, so, the longer it runs, the longer it takes to clean the memory. -Joe

Re: Modifying cluster values via refnum/property node freezes VI on quit

2004-04-24 Thread Joe Guo
sorry, only after posting my comment did I noticed your own response. You got it! -Joe