LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW application as ActiveX server

Hello all,

is there a possibility to detect (within the LabVIEW application), if a LabVIEW application (enabled as ActiveX server) is called through ActiveX or called through shortcuts (desktop, program menu, ...).

The background is, i want to do different things on startup depending on the kind of call.

Thanks in advance
Heinrich Eidloth
0 Kudos
Message 1 of 4
(2,879 Views)
Hello Heinrich,

please provide us with some more specific information.
Are you talking about a LabVIEW executable or the LabVIEW Envirnment?

Best regards
D. Ackermann
Applications Engineer
National Instruments Germany
0 Kudos
Message 2 of 4
(2,869 Views)
Hello D. Ackermann,

I am talking about an LabVIEW executable, not the LabVIEW environment.
The LabVIEW executable is built with ActiveX server option enabled. I can run the executable, get and set FP controls, show and hide the FP; so far so good.
Now, I want to detect within this executable, if the executable is called through ActiveX. I don't want to use commandline params (they are editable) or set a FP control (propably timing problems).
My intention is, to automatically do different things as if the executable was started normally (eg. desktop shortcut, menu entry, ..).

I hope, this makes it a little bit moe clear.

Regards
Heinrich
0 Kudos
Message 3 of 4
(2,856 Views)
Hello Heinrich,

sorry, but the only thing I can tell you is, that there is no built in mechanism in LabVIEW for detecting how the application was called.

If it is possible, than it would be somehow through Windows (WinAPI or COM?). So the question would be, does Windows provide a way to determine how an application was called. I hope you can get help from Microsoft with this issue.

If you get a solution, it would be great if you could post it. This really is an interesting question.

Good luck.


D. Ackermann
Applications Engineer
National Instruments Germany
0 Kudos
Message 4 of 4
(2,844 Views)