06-28-2010 03:12 PM
I am attempting to run a simple DLL on a National Instruments PXI real-time system through LabWindows/CVI, and I keep getting this error message: "LabWindows/CVI cannot connect to your real-time target." As it suggests, I have confirmed that the real-time target is connected to the network, booted into LabVIEW Real-Time, and that the LabWindows/CVI Run-time Engine for RT on it. I am running LabWindows/CVI 8.5 Realtime Module on my host machine and the run-time engine is also version 8.5.
I am able to run DLLs written in LabWindows through LabVIEW - I went through the examples in "Using LabWindows/CVI DLLs in LabVIEW Real-Time Applications" without any problems. I've also been through the LabWindows/CVI 8.5 Help files that pertain to running DLLs on real-time targets.
I've set up my PXI as a RT Target under Run -> Switch Execution Target via its assigned IP address. I am using RTmain in my code as well. Whenever I go to Run->Debug Project or Run -> Install mydll.dll to Execution Target I get the error message listed above.
Any suggestions on where to go from here?
06-29-2010 04:42 PM
Hi SomaSense,
Have you tried all the troubleshooting steps at the link below?
http://digital.ni.com/public.nsf/allkb/24D16468DE8838B2862568E200746D7E
07-01-2010 05:41 PM
I inadvertently posted under SomaSense's account when I created this thread... I'm actually the one troubleshooting this problem.
I am able to connect to the PXI via FTP, run realtime programs in LabVIEW, and view the PXI in MAX, so I haven't tried that troubleshooting. It is only when I try to run LabWindows programs on the PXI that I have any problems connecting. Should I still attempt to reset the connection to my PXI as in that troubleshooting guide?
07-06-2010 04:05 PM
CuriousCortex,
That's definitely interesting that a LabVIEW application using the CVI DLL works but you are unable to communicate with the PXI system from CVI's development environment. If you can give me any additional details on the error message itself, (perhaps the Error Code) it would be helpful in getting to the bottom of this issue. It wouldn't hurt to try the suggestions identified in the knowledgebase article just to make sure we cover all corner cases.
07-07-2010 02:54 PM
Raj -
Unfortunately there's no error code when trying to run the DLL in CVI's development environment. I just get a message that says "LabWindows/CVI cannot connect to your real-time target. Verify that your real-time target is connected to the network, that it is booted into LabVIEW Real-Time, and that you have installed the LabWindows/CVI Run-Time Engine for RT on it. The version of the LabWindows/CVI Run-Time Engine for RT has to match the version of your LabWindows/CVI development environment."
I see now that I am getting an error message via MAX, when I right-click on my remote system and select View Error Log. This says "Failed to load shared library c:\NI-RT\system\cvi_lvrt.dll on RT target device." Any suggestions on how to resolve this error?
07-08-2010 10:02 AM
Hi CuriousCortex,
Perhaps the knowledgebase article here would help resolving this issue. It appears to be a case of missing driving in your controller.
07-13-2010 03:10 PM
That appears to have solved the problem, thanks for your help Raj!