06-15-2009 05:14 PM
06-15-2009 05:17 PM
This has been asked many times. Have you tried a search on how to call .NET from LabVIEW?
If the C# code is an assembly then simply use the .NET functions. Note that depending on your LabVIEW version you will have limitations on which versions of .NET is supported. Check your LabVIEW documentation. If the C# code is an application then you can either compile the relevant code into a separate, reusable C# assembly or use a more general method for controlling applications. This has also been discussed many times in the forum.
02-03-2014 03:50 AM
I have a sitation that is sort of the other way around. I am deveoping a C# based application but I want to integrate a LabView window into that app.
Calling a c# DLL isn't the goal, It is more along the lines of calling LabView from c#.
Any ideas?
Bob.
02-03-2014
05:50 AM
- last edited on
06-05-2025
03:53 PM
by
Content Cleaner
We understand that you are new to the forum, but its not cool to hijack someone else's post from 5 years ago. Please post a new one.
If you need some guidelines to using this forum, please read this:
Secondly just a search should give you enough results. http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/q/call%20a%20labview%20dll%20...
Examples like these should help:
http://www.ni.com/example/26685/en/
You can build a dll using LabVIEW which can be called by your application.
Building Interop Assemblies: http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/building_a_net_assembly/
Also there is an example that ships with LabVIEW which may help with data passing: C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\dll\data passing
Hope this helps.
02-03-2014 06:01 AM
Thanks for this info.
Bob.