LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get a handle to an object using CVI_ActiveApp, but it opens a new CVI everytime it runs. Is there a way to get a handle to an object without it opening up a new CVI?

I'm trying to get a handle to an object using CVI_ActiveApp. It works, but it opens a new CVI application when it is run using the command line. Is it possible to get a handle to an object without a new CVI application opening up?

0 Kudos
Message 1 of 3
(4,199 Views)

Hi,

 

In the help documentation for the CVI_ActiveApp function, it states:

 

"If the server application is already running, this function may or may not start another copy of the application. This is determined by the server application."

http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/usermanual/actxappactiveapp/

 

I don't believe you have control over whether or not a second instance is started.

 

 

 

Regards,

0 Kudos
Message 2 of 3
(4,160 Views)

I wonder if this question is somewhat related to this other one.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(4,151 Views)