From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET DLL works with Labview 8.5 but won't load properly in LV14

Solved!
Go to solution

I have a customer supplied Labview example project and .net DLL for a temperature and humidity sensor. They provide a compiled .exe example that uses the labview 8.5 run time engine. That exe is able to read the sensor properly using the DLL. 

 

When I open the identitical source code in my LV14 and run the same application I get the following error.

 

Capture.JPG

 

When I try to add a .net constructor node on the block diagram I get the following error when I try to load the DLL in the contructor node. 

 

Capture.JPG

 

Is there a reason why a .net DLL might work in LV8.5 and not in LV 14? Is there a way to work around this?

 

0 Kudos
Message 1 of 4
(3,058 Views)
Solution
Accepted by topic author cotani

Can it be different .NET version each labview loads by default?

https://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/configuring_clr_version/

Message 2 of 4
(3,048 Views)

I've gotten error 1386 in the past on DLLs that just couldn't open because another program had a lock on them.  I don't suppose you're trying to do this at the same time you have the EXE open, or when any other program might be using the DLL?

 

When researching the problem I also read that the error can occur when they're on a network drive and not a local drive.  Is that the case?

0 Kudos
Message 3 of 4
(3,043 Views)

BINGO!

 

I ran through this tutorial on the link you posted and now all is working as expect. Thanks!

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/configuring_clr_version/

 

0 Kudos
Message 4 of 4
(2,921 Views)