ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabVIEW code in c#

Hi could you please let me know how is the best way of using LabVIEW code in c#. I see there are 2 options , making a dll or ,NET interop. Could you please let me know which one is better

 

I also have another question. when I want to make a dll or .NET I need to add my source VIs. I haev used many SubVIs to my main vi. Do I need to add all the SubVIs to Exported VIs or I need add my SubVIs to Always Included?

 

Thanks

0 Kudos
Message 1 of 4
(3,120 Views)
Unless you are calling a subVI dynamically, you don't have to do either.
0 Kudos
Message 2 of 4
(3,087 Views)

I can add the interop Assembly to the c# program and I can see the LabVIEWExport but I don't have access to the VIs I added to the LabVIEWExport . Could you please let me know how can I use a LabVIEW assembly in c#?

 

Thanks

0 Kudos
Message 3 of 4
(3,050 Views)

I use teh following code in c# to call the exported VIs

 

using NationalInstruments.LabVIEW.Interop;
using InteropAssembly;

 

and then

 InteropAssembly.LabVIEWExports.

 

but there is no function to ahev access to the exported VIs. I followed all the steps and then built the .NET assembly in LabVIEW but I don't have access to any of the exported VIs

Could you please help me

0 Kudos
Message 4 of 4
(3,034 Views)