12-13-2011 10:40 AM
Where can I get a copy of the Interop.LabVIEW DLL for use with C#, or do I have to write my own?
Solved! Go to Solution.
12-15-2011 11:43 AM
Do you mean the one registered with the GAC (NationalInstruments.LabVIEW.Interop.dll)? That should install with the Runtime Engine which you would need anyway. And since its in the GAC, you shouldn't need your own copy. Though for reference its in
C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\<version>
Not sure what you would be trying to do with it though. Generally, you'd be better off building your own interop dll using the App builder.
12-16-2011 05:14 AM
12-16-2011 10:18 AM
It's still not clear what you're trying to do. Do you have an interop assembly that someone created for you to use? If so, the classes and methods would be defined by the code that was written, so the documentation would come from the developer, not from NI's help files. If you're trying to use the core interop.labview assembly, I don't understand what you're trying to do with it.
12-16-2011 01:11 PM
12-17-2011 12:20 PM
I still don't understand. Are you actually creating a .NET Interop assembly via a LabVIEW project? Or are you trying to call a .NET assembly from LabVIEW. That's the important part. Which way are you going? If you're create a .NET Interop assembly from your LabVIEW code then you are the one defining the classes and methods. This information is not in the NI assemblies. If you are calling a .NET assembly from LabVIEW then you have to look at the documentation for that .NET assembly. If you are trying to call a WPF app, then does that app have a means of being controlled programmatically?
12-18-2011 08:48 AM
@smercurio_fc wrote:
I still don't understand. Are you actually creating a .NET Interop assembly via a LabVIEW project? Or are you trying to call a .NET assembly from LabVIEW. That's the important part. Which way are you going? If you're create a .NET Interop assembly from your LabVIEW code then you are the one defining the classes and methods. This information is not in the NI assemblies. If you are calling a .NET assembly from LabVIEW then you have to look at the documentation for that .NET assembly. If you are trying to call a WPF app, then does that app have a means of being controlled programmatically?
I'm trying to call a .net assembly but i can't find the documentation for any of the .net assemblies
If you look at my previous post i need to call labview from a wpf and i need to call my wpf from labview.
I basically need to start my wpf manually and the wpf will start the vi, thats the first communication step.
then when the vi recieves a digital input it will start the wpf webcam running.
so in a nut shell i need to be able to call my vi from my wpf and to be able to call my wpf from my vi.
I would like to avoid writing my own assemblies if possible and just use the assemblies that already exist.
the problem is finding documentation for the assemblies that already exist and documentation
I am also trying to find documentation on how to use labview active x object, .net objects and CIN objects in labview.
12-18-2011 07:19 PM
You cannot control a LabVIEW VI from WPF using .NET. You have to use the ActiveX server. The ActiveX server is fully documented in the LabVIEW Help. It has limited capabilities, though.
As for calling .NET from LabVIEW, any documentation on the LabVIEW side relates to calling .NET in general, and not to your specific assembly/application. That documentation would come from you or whoever created the .NET assembly/application you are trying to use.
12-18-2011 07:39 PM
Note that in my first comment I am not referring to building the LabVIEW code into a .NET Interop assembly. That's something you can do if you wanted to, and this will allow you to call the VI from your WPF app as a .NET assembly.
12-20-2011 09:42 AM
OK. i'll look into it and get back to you in the new year.
Thanks again for all your help and happy christmas.