LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW locks up when importing my .dll

Hey there, I'm using LabVIEW 12.0f1. I created a .dll for use in TestStand, and when I tried to wrap it in LabVIEW using the import shared library functionality, I get dependency problems with other .dlls (not found), and I'm not really sure why since the .dll works fine as-is in Teststand. I copied the .dlls it wanted into my Windows folder, and afterwards when I try to open the VI, LabVIEW freezes and I have to forcibly end the process. Now I also have the same issue when LabVIEW tries to create the VIs at the end of the import wizard, for the same reason. Is there any kind of debugging tool or simple thing I'm missing that could resolve this issue?

0 Kudos
Message 1 of 9
(3,451 Views)

Are you sure it is opting same path?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 9
(3,432 Views)

The same path as what? I'm just using the Import Shared Library wizard, apart from the include files, there are no paths to specifiy.

0 Kudos
Message 3 of 9
(3,421 Views)

Use indicator and verify this

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 9
(3,402 Views)

@bclark wrote:

I get dependency problems with other .dlls (not found), 


What are the names of the "other" dlls?

0 Kudos
Message 5 of 9
(3,391 Views)

"Use indicator and verify this"

 

I'm sorry...I don't understand what you are saying. What indicator, and what am I verifying?

 

"What are the names of the "other" dlls?"

 

A CAN dll, iconv.dll, and zlib1dll. The CAN stuff is already built into my dll via lib files, so I am not sure why Labview needs dll versions of them to load mine.

0 Kudos
Message 6 of 9
(3,359 Views)

When you use the import wizard, is it crashing while trying to parse the header file?  If so you may want to take a look at the following link and see if the recommended solution will help solve this issue.

 

http://digital.ni.com/public.nsf/allkb/9659956BEF356CBA8625793300548A71

 

Regards,

 

Shane C

0 Kudos
Message 7 of 9
(3,318 Views)

No, it parses the header file just find and gives me a list of all the functions. It locks up when I try to open any of the VIs it creates.

0 Kudos
Message 8 of 9
(3,312 Views)

Could you post the dll file that you created so we can see if we can re-create this same freezing action?  Also, what version of LabVIEW are you using?  

 

Regards,

 

Shane C

 

0 Kudos
Message 9 of 9
(3,290 Views)