Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Waiting for RT target to Respond

Hi,

 

I'm suffering various failures to run RT on the cRIO.  During deployment of the VI, I get the error "waiting for RT target to respond" and it hangs.  The SAME code will load if the cRIO power is cycled or, sometimes it seems, if I get "lucky".   I'm not able to reproduce on a regular basis.  We're using a standard Ethernet cable to the cRIO, Win10.

 

I'm looking for help in diagnosing the cause.

 

Thanks,

Tim

 

0 Kudos
Message 1 of 3
(3,463 Views)

In my experience this is normally caused by a situation where the UI thread on the RT (responsible for communicating back to your PC) is starved, resulting in communication failures. Starving could be the result of a number of things but typically it is caused by other code running at a higher priority (eg. Timed Loops, Time Critical priority VIs) and that code occupies the entire CPU - the UI thread isn't given any time. Take a look at this (http://www.ni.com/white-paper/14/en/) which gives some background info. 

 

Simply put: When you deploy and run a VI on the RT it runs it temporarily (until you stop it) and it doesn't run on RT startup (you need to build a startup application to do that). When you run your VI temporarily the RT UI thread needs CPU time to communicate back to the Front Panel shown on your PC as well as communicate block diagram and probe data if you are debugging. Anything that prevents the UI thread from getting CPU time to do this will cause your PC to lose communications to the RT, most likely tight loop(s) that leaves little CPU time for anything else.

 

If you post your VI (or an example that you think causes the issue on occasion) then we might be able to provide better direction.

0 Kudos
Message 2 of 3
(3,449 Views)

I face a similar problem N times. It's very annoying. Tried multiple restarts of cRIO and laptop, then gets lucky after many occasions. It even happens when you first time trying to connect the cRIO from the LV Project -so not like VI ran in the past blocked the UI thread.

0 Kudos
Message 3 of 3
(979 Views)