03-17-2010 12:28 PM
04-30-2010 09:59 AM
Right now (while testing on my local PC), I run my 'factory' not as an Exe, but just from labview (clicking the Run icon). The (in this case) four instances of my VIT (also not an exe) appear in their respective SubPanels. However, none of the VITs is running. I tried setting the VIT's VI Properties->Execution to "Run When Opened", but that didn't seem to make any difference. The VITs still do not run. The VITs are really just VIs, so I thought I could just change the "Run When Opened". Do I have to make the VIT an exe somehow?
04-30-2010 11:36 AM
If you are running in the development environment the "Run when opened" property does not apply. You can run the VIT progrmamatically by opening a reference to it and using a the RunVI method (Invoke node).
Dan
05-05-2010 07:37 AM
I've attached a png to show what I'm doing. If I just use the Invoke Node, my VIT comes up but doesn't run. If I try to pass the VI Reference to the Call By Reference Node Function, I get a broken wire.
05-05-2010 07:50 AM
Quoting myself from earlier in this thread;
With that in mind I would like to invite yo uto look at the code i posted in this thread (reply #18 has a zip).
That link has a working example that should help. ![]()
Ben
06-09-2010 02:59 PM
06-09-2010 03:02 PM
mrbean wrote:
Instead of a VIT, can I somehow invoke the DLL equivalent of my main and display it on the subpanel instead? I'm not sure how to open the reference and run the VI like I currently do for the VIT. Right now I'm trying to use the Call Library Function Node, but other than passing it its required parameters, I'm not sure what to do to get it to run.
If your dll supports an ActiveX interface then you can use an ActiveX container.
Ben
06-14-2010 08:29 AM
I'd like to take advantage of the ini file associated with my app's exe that contains (and thus) 'allowMultipleInstances'. However, I need a way in my factory to display each instance in its own tab (subpanel). Is there a way to do that without using a VIT ?
06-15-2010 05:20 PM
06-16-2010 06:11 AM
I'm fairly certain that the DLL approach is not what I want. Ideally, I'd like to run 'n' instances of the exe version of my application but I want them contained within the tab control of another application (factory) so that the user can select the desired tab instead of having to go to the Windows task bar and hover over each instance and try to figure out which is which. The only way I found to do that was to use VIT and sup-panels, but I get resource conflicts (probably due to some re-entrancy I'm not accounting for). I think with the exe, it will take care of all the re-entrant issues. That's why I'd like to go that route if possible.