03-21-2014 10:08 AM
Hello, I've bees using LabVIEW for a few years now and would consider myself between novice and intermediate. I previously used version 8.5, but at my new job they havnt got me a copy of LV yet so I'm using 2013 evaluation for now.
My question is I am trying to figure out how to use these manufacturer-supplied .NET dll's to extract measurement data from a proprietary .dat format (Orbit F/R). I read in the help that I should start by creating a .net constructor and load an assembly. When I try to do this my assembly is not in the list (from what I can tell) and if I browse for one of the DLL's and try to load it, it gives me an error.
How do I get this to work?
03-24-2014
02:45 PM
- last edited on
04-28-2025
11:30 AM
by
Content Cleaner
Hi Kornyguy06,
Depending on the dll, you may need to configure LabVIEW to work with CLR 4.0. If that is the case, then you can use the following document to do so:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/configuring_clr_version/
But it does come with some caveats, so please make sure to read through carefully. Also make sure that you use CLR 2.0 to build any .NET interop assembly.
03-25-2014 09:36 AM
I tried loading the DLL's as 4.0 assemblies by adding a labview config file, but it still produced the same error when I tried to load them (after LabVIEW re-launch). I know these files work becasue someone else in the company had already used them in a MS Visual Basic program, but I don't know that language.
Thanks
03-26-2014
04:15 PM
- last edited on
04-28-2025
11:31 AM
by
Content Cleaner
Hi,
Here are some resources on how to load .NET dlls:
https://www.ni.com/docs/en-US/bundle/labview/page/loading-net-assemblies.html
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGggCAG&l=en-US
Here is a discussion on the error:
https://forums.ni.com/t5/LabVIEW/NET-DLL-System-BadImageFormatException/m-p/1829579/highlight/true#M...