LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRIO looses network connection

I am developing my second CRIO application. This is a quite complicated real-time application that has been running on a PC and I am now porting over to CRIO for better determinism, more robust platform etc. I've done the FPGA coding and this is well tested, and now fitting in the rest of the real-time control into the CRIO-9004. I plan to use shared variables to get data to an accompanying PC for display, but have just two test variables running at the moment.
The problem is that the RT program runs for a while and then appears to hang up from the network. The FPGA is still working because it is setting outputs in response to digital inputs. Neither MAX or the test vi looking at shared variables can see it. This happens with a deployed RTstartup program, or from project explorer.
The only way to recover this is to go the rig and actually press the red reject button (or cycle the power).
 
I've been watching it with RT system manager, and although the CPU usage can go up to 100% if I have too many diagrams open, this is not definitely the cause - it just hung up from 60% usage, I'm using about half the RT memory so plenty of space there.
 
Possible causes -
There's too much code, performance needs to be improved.  - Does anybody know of useful utilities to monitor cpu performance as a sort of watch dog.
 
The network or vi server is shutting down - Again, I'd appreciate some help on how to monitor this.
 
Obscure fault on CRIO hardware. ??
 
Looking forward to finding out if other people have had similar problems.
 
Lucy
0 Kudos
Message 1 of 3
(3,019 Views)
Hi Lucy,

I just wanted to let you know that I'm looking into this for you.

In the meantime, could you also post this forum on the Real-Time Measurement and Control forum as that will be monitored by users and other NI employees who have used these types of systems:
http://forums.ni.com/ni/board?board.id=280
Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 2 of 3
(2,984 Views)
Hi Lucy,

To address the suggestions you made:

There's too much code, performance needs to be improved.  - Does anybody know of useful utilities to monitor cpu performance as a sort of watch dog.
There is a software package called the Execution Trace Toolkit you can use to monitor the performance of your Real Time applications. If you have access to this software through a developer suite or a site license it would be worth installing that.

If not there are a number of other things you can try first.

The network or vi server is shutting down - Again, I'd appreciate some help on how to monitor this.
To determine if the problem is caused by the network you should connect to the cRIO with a cross over cable and see if you see the same behaviour. This will help determine if the problem is down to the network or the cRIO system.

Once you've isolated the source of the problem (ie the crio or the network) we can investigate the cause and hopefully come up with a resolution.

Kind regards

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 3 of 3
(2,983 Views)