02-16-2009 09:30 AM
I have one subvi which is dynamically load by several VIs. How can I debug the subvi for each instance? It seems that I can only open one copy of the subvi but I want to get the front panel for each instance. Is it something possible? Thanks!
Tom
Solved! Go to Solution.
02-16-2009 09:55 AM
A couple options:
In each case you'll have to remember to remove these items when you're done debugging.
02-16-2009 10:30 AM
Hi Jarrod,
Thanks for your reply. If multiple instance of the same subvi are called at the same time I still can get only one front panel open. Do I miss something? I attached a simple test program I tried. Thanks for help!
Tom
02-16-2009
11:43 AM
- last edited on
04-18-2025
03:45 PM
by
Content Cleaner
You need to do two things to open multiple instances of the same VI dynamically.
Otherwise you are simply opening a reference to the same VI twice, and this instance can't execute in two places at the same time. The second call to the VI will have to wait for the first to end.
02-17-2009 04:23 PM
Hi Jarrod,
Thanks! It works. I know in LabVIEW 8.6 if I call the subvi which is reentrant I will get multiple instance for the same subvi. It gives the same results as what you suggested. However if I use the same configuration for VIs running on Real Time target it doesn't work. I have make sure the subvi is reentrant and preallocate instance for each clone. But when the main vis runs I click the subvi icon in the diagram only one subvi front panel opens and it doesn't correspond any of the instance. Is the subvi running on RT target is different?
Tom
02-17-2009 04:44 PM
02-18-2009 02:15 PM