03-14-2007 11:37 AM
03-14-2007 01:23 PM
That's useful - for example, I have a TIMING TEMPLATE. When I want to time something. I open this VIT file. I insert the code I want to time into a certain frame, and run it. I usually don't save it, but if I do, I have to give it a new name.
That way, the next time I open it, it's fresh again.
If you want to run the same VI multiple times in parallel, you must:
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-14-2007 01:28 PM
Can you attach your code so we can see whats happening?
Shooting in the dark: It sounds to me like the SubVIs should be the vit. You would want the Main VI to open a new instance to the Sub VIT, pass in the various references and then run it. Then when a new instance is needed you just call the same code again.
03-15-2007 07:40 AM
03-15-2007 08:03 AM
For an example of how to use a template to present multiple GUI's please see the my "Dynamic Instantiation of Occurrence Based Architecture" Nugget that can be found here.
http://forums.ni.com/ni/board/message?board.id=170&message.id=226491&view=by_date_descending&page=2
Ben
03-15-2007 09:53 AM
Thank you for the thought guys.
The sub vi called by main contains 2 other sub vi's front panel. So when I use first subvi as vit, it won't load its sub vi's front panel.
Sub1 vi + sub 2 vi --- (called by) ---> sub 3. vi ---> main vi.
I made main vit, sub 3 vit. Sub3 vit won't load sub1, sub2 vi's front panels....
Something like this kinda architecture. I'm not sure if vit with sub vit can be done. I'll attach example code if I can make it simple.
Thanks again.