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
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
Hi,
Here are some resources on how to load .NET dlls:
http://zone.ni.com/reference/en-XX/help/371361K-01/lvconcepts/loading_assemblies/
http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
Here is a discussion on the error:
http://forums.ni.com/t5/LabVIEW/NET-DLL-System-BadImageFormatException/m-p/1829579/highlight/true#M6...