Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch LabVIEW ADE active version uisng .net code

Hi,

I am curious to know, How I can invoke the LabVIEW ADE installed on my computer automatically using a .net code written in C#?(what if multiple LabVIEW versions are installed)?. Also, using this .net code i want to select and load a VI dynamically, obtain its connector pane information and display its icon image in a .net image display control. The .net code should also recognize the LabVIEW version for this selected VI. Any idea, on how i can implement this? (I am beginner to .net and C#)

0 Kudos
Message 1 of 4
(4,536 Views)

You can invoke LabVIEW through ActiveX automation, which can be accomplished in .NET. I recommend starting with this guide to understand the basics:

 

https://forums.ni.com/t5/Example-Program-Drafts/Calling-LabVIEW-VIs-from-Other-Programming-Languages...

 

Cheers,

Ryan Curtis

Product Support Engineer

Automated Test Software R&D

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

Hi Ryan,

 

I'm facing a similar situation. Could you post the correct & current link to the tutorial, since the link you had posted then has been broken/deleted now. 😞

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 4
(2,200 Views)

https://www.ni.com/en/shop/labview/activex-and-labview.html

 

Read the part about LabVIEW as Automation Server. LabVIEW comes with a type library that most Automation capable software should be able to parse and use.

 

https://www.ni.com/docs/en-US/bundle/labview/page/activating-labview-as-an-activex-server.html

 

How to enable it.

 

https://github.com/l-johnston/autolv

 

And this is a python project about how to access the LabVIEW VI Server interface through ActiveX. If you don't use Python you can still use it to see how it is generally supposed to work. Of course you need to understand some basic Python code and also how to access an ActiveX Automation Server in .Net/C#.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(2,179 Views)