11-11-2011 12:17 AM
Is there a way to create multiple instances of a LabVIEW indicator or sub-VI while the top-level VI is running?
Here's what I'm trying to do:
I have a network of wireless acceleration sensors all being monitored by a LabVIEW VI. Each sensor sends packets to the VI containing sensor ID, acceleration data and sensor status. I have a subVI that displays data (using a chart) and status information for a single radio. I would like to set up my main VI so that whenever a sensor module connects to the network it can create an instance of this subVI for that particular sensor. Is there a way to do something like this?
I'm hoping someone can point me in the right direction.
Thank you,
Mike
Solved! Go to Solution.
11-11-2011 12:26 AM - edited 11-11-2011 12:27 AM
Hi,
To create instances of a subVI , go to the VI properties of the Sub VI (by right clicking on the VI Icon on the Top Right corner) >> Excecution>>Re-entrant execution. Tick this option and drop your subVI where ever required. Every time it is used, a new instance is created. Also you can try a .vit file(VI Template) which works in instances.
Regards,
NitzZ
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;))