03-19-2014 04:48 AM
Dear All,
I am Using NI-9075, Labview 2011
We have deployed StartupRT.exe into controller.
Some time , randomly my RT Exe Stops responding and in such case my complete machine operation and Data aquisition gets freezes.
When such things happen, Then if i trys to connect CRIO from Project.
The Deployment Progess stops at
Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Waiting for Real-Time target (NI-cRIO9075) to respond
Refer Attached Screen Shot.
What is this Condition Called?
In such case i am not able to find where problem is.?
Ones, Controller is Reset then every thing Works normally.
Thanks
Patel
03-19-2014 06:26 AM
Hi Patel,
It sounds like your network stack is becoming unresponsive, there are a couple of possible causes:
1. Running out of file handles. In VxWorks everything is a file handle, obviously file references but also network connections. If you have a reference leak in your code this could cause you to use all of the available file handles (I believe 64k from memory) and then new network connections can't be made.
2. You have a high priority loop that is running too fast. The RTOS will prioritise this over all other operations, including the network stack. Why this kicks in depends on the software. It could be an error conditions causes it to run faster or a memory leak can lead to higher CPU as it becomes harder to find space to allocate software.
I would suggest a couple of steps:
This should allow you to start narrowing down some likely suspects.
Cheers,
James
03-19-2014 12:59 PM
Dear James
Thanks you for valuable answer.
I have checked CPU Usage from Distributed System Manager.
All right CPU Usage Was Very High. It was above 87-91 %
I changed my Loops timing and Now It is around 31-34 %
I am trying to get more closer to 15-20 %.
Are The Following Parameter is OK.
Thanks
Regards
Patel
03-21-2014 10:38 AM
Hi,
Normally I would recommend keeping them below 80% in normal running (so there is room for the occasional spike) so that sounds OK. The other question is just to make sure they don't trend upwards over time, this is a sign of a more significant issue.
Cheers,
James