03-17-2008 12:28 PM
03-17-2008
07:26 PM
- last edited on
05-01-2025
02:25 PM
by
Content Cleaner
Hi DWendelboe,
You are getting confused between native Win32 DLLs and .NET assemblies and their usage. If you were creating native Win32 DLLs (i.e. like from C++), then you would need to make sure that you exported the appropriate symbols in a C-style format. This is needed so that other environments can read that DLL. In LabVIEW's case, you would be using the Call Library Function Node to call into this DLL.
However, in your case your are using C# which means that the output of th C# compiler will be a .NET assembly. In order to call .NET assemblies in LabVIEW, you need to use the .NET functions and VIs such as the .NET Constructor Node (i.e. which creates a instance of a class --> an object that you can use). You can read more about this in the Using .NET with LabVIEW help topic which explains in detail how to use .NET assemblies with LabVIEW. I would also recommend checking out the .NET shipping examples that are installd with LabVIEW. To access those examples, just open up the NI Example Finder (Help >> Find Examples) and then navigate to the Communicating with External Applications >> .NET directory.
Hope this helps!
Best Regards,