LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing controls in standalone ActiveX server app

From VC++, I can instantiate the LabVIEW ActiveX Server Application object ("LabVIEW.Application") and use its GetVIReference with a path to a .vi to get a VirtualInstrument object on which I can set & get control values.

Is there any way to do that on a VI that's been built into a standalone ActiveX Server app? As soon as I instantiate its Application object ("MyStandaloneVI.Application"), that standalone app runs. But if I try to use GetVIReference on it, I just get the error message "The VI is not executable".

Is there any other way to get the VirtualInstrument from a standalone app, or otherwise get access to the standalone app's controls?
0 Kudos
Message 1 of 4
(2,768 Views)
I am sure that I have done this in the past. I bet you need to set the VI not to automatically run when you build it.
0 Kudos
Message 2 of 4
(2,768 Views)
Can you tell me how to set the VI not to automatically run, so that I can try that. I don't see that option anywhere on the Build Application dialog.
0 Kudos
Message 3 of 4
(2,768 Views)
The trick is to use GetVIReference("MyStandaloneVI.vi"), i.e using just the name of the original VI used to create the standalone app, without its path, since it's already loaded in memory at that point.

Thanks to Colin Christofferson at NI for this info.
Message 4 of 4
(2,768 Views)