LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a LV.exe from LV via ActiveX?

Hi all,

I need some kind of atomic task, e.g. some (short) instructions that cannot be aborted. Calling a DLL, wait some ms, calling it again... And even an Abort via VI server shall not abort this atomic task but finish it.

I thought about building an LV application and run it via ActiveX.

Building the app is managed. But running it via ActiveX is still unsolved.
Have extensively searched for examples for this, but the only source I came up with was
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD6B56A4E034080020E74861&p_node=DZ52051&p_source=external
This one is about 6 years old and talks about LV 5.1, whereas I use LV 7.1.
Nevertheless I have performed all steps as described there, e.g. enabling ActiveX, granting privileges, enabled DCOM with dcomcnfg and registering my app. Finally I could open an automation refnum to it. But whatever ActiveX class I choose, there's no way to set a control in my app and to run or call it. Lots of mysterious errors (depending on what class I choosed), amoung them 5012 (exception occored).

Any newer instruction or another idea on how to get an atomic VI?

BTW, I am not sure if a DLL would do it, as it runs in the context of LabVIEW. I believe I need this atomic VI in a different context. Right?

Message Edited by LuI on 06-17-2005 04:08 PM

0 Kudos
Message 1 of 2
(2,807 Views)
Hi Lul

I create a small example to run an LV application an run it via ActiveX in LV 7.1.
To build the application I change:

VI settings => Run when opened => No
Application settings => Enable Active X server

to register the executable I only run it once.

Hope this helps

Manuel
0 Kudos
Message 2 of 2
(2,767 Views)