LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

updating strict type def dynamically???!!!!

Dear all, (sorry for this message)

please help me out in this issue.

I have a ring control (strict type def) that displays channel names and it is used in more than 35 to 40 clusters again clusters are strict type defs.

User has provision  to select the channel names from a setup module which are to be acquired and only those channels must be listed in the strict type def ring control.

I tackled this problem  by opening the strict type def in edit mode from another vi and updated the "Strings" property of the ring control and it worked fine there was no problem.

But when i created the executable the strict typedef ring control was no longer updated. I have added the ring control to the dynamic and support files and still it that wasnt updated

I carried a small workout with two simple vi's creating exe with the same ring control from which i concluded that the strict typedef lose their association with their parent typedef once when a exe is created .

So how do i go about.  coz the 40 clusters need to display the selected channels when the test sequence starts.  Is there any workaround

Its urgent...pleas help.

With regards,
JK1

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 1 of 4
(3,182 Views)
I don't think you can update strict type def dynamically. Not in developing mode, not in runtime.
That is, because it is not the reason they exist.
You should use only one control (not 40) .
That control will be a global variable, or a functional global variable, and all your vi's should read from that.
 
"strict type def " are used to edit mode, so you don't have to manually change many controls.
But if you want to change them all together dynamically , you should do the above.
0 Kudos
Message 2 of 4
(3,160 Views)
Hai,

Ring control Strict type def can be updated dynamically only one constraint is none of its instance should be loaded in memory.  I had no problem in updating it dynamically and everything was fine ie., all the clusters got updated automatically when the ring strict type def control was updated dynamically.

but the problem is only when i create an exe eventhough i update the ring strict type control the instances of the control are not updated.

There will be no problem if i have to update the controls if they are placed in any vi's and the solution you provided will suit to it.

But the bottleneck is the ring control is now placed in number of clusters and also those clusters are strict typedefs.  How do i update this ring strict type def.

help me out.

with best regards,
JK



Message Edited by JK1 on 03-08-2008 01:23 PM

Message Edited by JK1 on 03-08-2008 01:25 PM

Message Edited by JK1 on 03-08-2008 01:25 PM
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 3 of 4
(3,150 Views)


JK1 wrote:
Ring control Strict type def can be updated dynamically only one constraint is none of its instance should be loaded in memory.  
I did not knew that. But i think you answered your own question. Maybe you can update them if you temporarily remove from memory, all the vis that have the ring control, update them and again load all the vis to run the program.
But i think it is the wrong way.
You should really re-write your code, with the correct architecture.
 
There is a rule : always test your code, and as an exe, regularly, so you will not be in a situation like this.
Of course you can not do that if the code is written by someone else
Message 4 of 4
(3,116 Views)