LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"LabWindows/CVI cannot connect to your real-time target"

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?

0 Kudos
Message 1 of 7
(4,523 Views)

Hi SomaSense,

 

Have you tried all the troubleshooting steps at the link below?

 

http://digital.ni.com/public.nsf/allkb/24D16468DE8838B2862568E200746D7E

 

 

Raj
National Instruments
Applications Engineer
0 Kudos
Message 2 of 7
(4,490 Views)

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?

0 Kudos
Message 3 of 7
(4,468 Views)

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.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(4,421 Views)

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?

0 Kudos
Message 5 of 7
(4,395 Views)

Hi CuriousCortex,

 

Perhaps the knowledgebase article here would help resolving this issue. It appears to be a case of missing driving in your controller.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 6 of 7
(4,371 Views)

That appears to have solved the problem, thanks for your help Raj!

0 Kudos
Message 7 of 7
(4,323 Views)