Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Dll failed to load on the RT system

Hi all
 
Am using a third party dll to comunicate with a controller via RS 232, i have used the call "Call library function node" function to call the function in the VI, if i use these in windows host PC and communicate with the controller, it works fine. But when i try to download this VI to my embedded PXI (8186) it says failed to download the dll. and my VI cannot be run. Can any one give me info on what is the problem?
 
Thanx
Arun
0 Kudos
Message 1 of 5
(4,312 Views)
Hi Arun: Take a look at this knowledgebase. Is this whats going on? http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a1a374914c22d60e86256c08006d1091?OpenDocument Best Regards, Jaideep
0 Kudos
Message 2 of 5
(4,299 Views)

Hi Jaideep

Thanx for your reply. BUt i believe this is not the cause of the problem, as the file name of the dll is short and does not have any space or special character. Can i use any dll in my RT system, meaning dll built using VC++ or any other IDE. or it should always be CVI. I read a document which mention how to use CVI code in labview, in RT system. That document says we have to create the dll with some options checked. which are given below.

Building a LabWindows/CVI DLL for the LabVIEW Real-Time

Module

Once you design and implement the code for the DLL, you can create a DLL by setting the Build»Target Type to

Dynamic Link Library and switching the Runtime Support field of the Target Settings dialog box to LabVIEW

Real-Time Only. You can leave all other fields in their default state. Click the Help button for more information on

building a DLL.

Can this be the cause of the problem, that this dll was not built with these options checked?

Regards

Arun

0 Kudos
Message 3 of 5
(4,296 Views)
Try this out: There is a utility that checks to see if your dll is executable in real-time. http://digital.ni.com/public.nsf/websearch/0BF52E6FAC0BF9C286256EDB00015230?OpenDocument Regards, Jaideep
0 Kudos
Message 4 of 5
(4,275 Views)

Hi jaideep

I downloaded the executable and found that the dll am using is infact using some windows API for registers and other windows dll's

i belive the dll cannot be used or should be recounstructed without using windows dll'd

Thanx for your help

Regards

Arun

0 Kudos
Message 5 of 5
(4,267 Views)