LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Working with .net dll

I've never called a custom dll before so please bare with me. 

I am working with a Kawasaki robot and there are .dll files that can be used to communicate to the robot. I am trying to integrate these dlls into labview but have no idea on how to do this. I believe the are .NET 4.0 dlls but opening them with the .NET constructor instruction causes errors. I've attached the .dll and the help files provided with them. Any support would be apricated!

Download All
0 Kudos
Message 1 of 8
(221 Views)
  1. Are you using LabVIEW 64-bit? Based on the name of the dll it's 64-bit.
  2. Have you used something like Dependency Walker to see if there are additional dll dependencies it can not find? 
0 Kudos
Message 2 of 8
(208 Views)

In addition to the two items ShockHouse mentioned, which are very common issues, another one to check is to see if Windows has blocked access to the DLL.  A lot of times, when you get a DLL via a method other than a signed installer, Windows blocks access to it in the name of security. 

 

If you right-click it in Explorer and select "Properties", it might reveal an "Unblock" button that you have to press.

0 Kudos
Message 3 of 8
(171 Views)

I am using Labview 64 bit. I went into the properties of the DLL and unblocked it.

 

Using the dependency software, it found no missing dependencies

0 Kudos
Message 4 of 8
(167 Views)

Can you be more specific on the error that the constructor node gave you?

 

Option 1:

Kyle97330_0-1754672449453.png

This usually means the file is corrupt or it's not actually a .NET dll.

 

Option 2:

Kyle97330_2-1754672794727.png

This one is usually blocked access, wrong bit level, or missing dependencies.  Sometimes, it means it's the wrong .NET version.

 

Option 3:

"Other"

If it's not one of those two, provide a screenshot of what it actually is.

0 Kudos
Message 5 of 8
(164 Views)

john_joe_0-1754673352022.png

This is the error I'm getting. I checked to make sure I have .NET 4.0 installed and I do.

 

john_joe_0-1754673683522.png

 

All dependencies loaded correctly

0 Kudos
Message 6 of 8
(158 Views)

Well, not sure what to tell you here.  I finally downloaded your DLL and put it on my system, LabVIEW 2021 64-bit, and fired it up and got this:

Kyle97330_0-1754686580473.png

So, I know it doesn't explicitly help you on account of I don't know what our system's difference is, but it definitely can be done in LabVIEW... somehow.

 

Are you using 2025? I know they changed the .NET implementation a bit to add beta support for newer .NET versions.  Maybe you could try an earlier LabVIEW version?

0 Kudos
Message 7 of 8
(128 Views)

I am using 2025 Q1 perhaps that is the only difference

0 Kudos
Message 8 of 8
(116 Views)