08-01-2023 08:31 AM
I have a vi I'm running from TestStand, and it's loading in a different application instance than my LabVIEW app. I know how I can get them on the same application instance, but that creates other problems for me. I'd really like to be able to have my LabVIEW app subpanel a vi that is running in another application instance, but I don't think it's possible. I'm hoping someone can confirm or comment on if there are any known workarounds.
Solved! Go to Solution.
08-01-2023 02:02 PM
Just try it and see if it works.
08-01-2023 02:07 PM
I have tried it - it does not work, which is what I should have said when I mentioned "I don't think it's possible". I ask the question because I am wondering if there are any other tricks or workarounds. Otherwise it sounds like it is a requirement that a vi be in the same application instance to subpanel into another. I'll accept that, just wanted to verify that conclusion with community experts.
08-01-2023 07:15 PM
I just threw together some code. It works OK for me.
08-01-2023 07:17 PM
Really!? would you be able to share it?
08-01-2023 11:21 PM
So, you want to see the FP of a VI running in another application instance (TS)?
Why is this a need?
08-02-2023 09:01 AM
When running from the development environment in LabVIEW (a project application instance), I would like to subpanel vi's that are run from TestStand (in the default application instance) to provide a more integrated application experience.
At risk of going down a rabbit hole here, I'll mention I'm aware of a couple of workarounds, but they cause other notable painpoints:
1. Create plugin vi's for subpanelling into the LabVIEW application that interface with the Teststand code through UI messages or another means. This is quite a bit of extra work I'm looking to avoid.
2. run the LabVIEW project code from the main application instance. To do this you either need to avoid opening an lvproj file which removes lots of useful IDE capabilities or you open the lvproj file and switch your top level vi's application instance to the default (main) application instance. However, when you do this, it locks up classes since they're now open in two application instances (the lvproj app instance and the default/main app instance). Even after you finish running your code, LabVIEW never fully unloads the classes from memory, which is a known limitation/feature of LabVIEW. Locked classes limits what you can then do with your code after you run once and you need to close and reopen your project to unlock the code. This is the painful workaround I'm currently dealing with.
08-02-2023 06:13 PM
@sdusing wrote:
Really!? would you be able to share it?
Here
08-03-2023 11:21 AM
I learned something new today. Thank you Paul!
03-13-2024 01:55 PM
Just wanted to show the test I was able to run and how I did in fact confirm this functionality. VI that is subpanelled is running in the main app instance. The vi on the left is running in the project app instance. Opening the vi by name in the correct app instance did work and did allow me to subpanel it into another.