LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect inside a vi, if the vi was called as a application or by ActiveX?

Hello All

My vi needs to behave differently in situations where it was called as an ActiveX server or as it was executed as a standard application.

So inside a vi I need to detect what is the current execution mode.

Can anybody tell me where I can find this information?

Thanks in advance

Pawel
0 Kudos
Message 1 of 3
(2,645 Views)
pawel wrote:
> Hello All
>
> My vi needs to behave differently in situations where it was called as
> an ActiveX server or as it was executed as a standard application.
>
> So inside a vi I need to detect what is the current execution mode.
>

I don't think you really can do that. What you could do however, is
adding an extra optional boolean input parameter which you have to set
in either the case of Active X or Application, depending of what you
prefer. Then have a wrapper VI for Active X and maybe another one for
non-Active X to call the real VI from.

Document the VI name for Active X calls in your Active X interface
description and use the other one in your LabVIEW apps.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 3
(2,645 Views)
Hello Rolf

I think you are right. I wanted to avoid having two different application with, but I guess it is not a good solution.

Thanks for help
Pawel
0 Kudos
Message 3 of 3
(2,645 Views)