09-11-2013 02:02 PM
All Examples I've seen include a static path to the sub Vi. Is there a way to do this assuming the Sub Vi is part of the project or exe build?
09-11-2013 02:36 PM
@nswieder wrote:
All Examples I've seen include a static path to the sub Vi. Is there a way to do this assuming the Sub Vi is part of the project or exe build?
Yes, you can use Open VI ref with a path and have it completely dynamic. It causes some issues with building an .exe as the compiler doesn't know about such files and you'll need to add them to "Always include" or a included source code distribution yourself.
/Y
09-13-2013 12:25 PM
Got it. Thanks For the Help!
02-02-2016 10:26 AM
02-02-2016 10:37 AM
Do you really want a subvi or a plug in vi? A subvi will effect the operation of the main calling vi and a plug in will run independent of the calling main vi.
02-02-2016 10:42 AM
02-02-2016 10:45 AM
@ZohaibRamzane wrote:
Can I display sub Vis on the front panel of main via such that when I click on any one of the sub vi ,it starts to execute.
Please help me to do this.
Use a subpanel to insert the subVI's panel. But that subVI should be running in parallel of your main loop. It should have its own GUI control and/or receive commands from the main loop.
02-02-2016 10:51 AM
02-02-2016 10:53 AM
@ZohaibRamzane wrote:
Any example to elaborate your answer?
Just open up the Example Finder (Help->Find Examples) and do a search for "subpanels". That should tell you everything you need to know.
02-02-2016 11:03 AM - edited 02-02-2016 11:05 AM
Use Vi server to call the plugin vi and use the display subpanel for the front panel of the plugin. This will allow the main vi to run as normal and allow interaction with the other vi's front panel.