04-07-2009 06:09 AM - edited 04-07-2009 06:10 AM
I’m encountering a problem. When I deploy my program into my cRIO, the program runs for a while but then loses all connection.This is the error dialog that I get:
The program is made in the scan interface mode, and consists of two sub frames (two subsequences). There are no hardware problems, the cRIO works perfectly for other programs. And the deployed program doesn’t consume too much memory in the cRIO.What could be the problem?
Thanks in advance,
Kenneth
Solved! Go to Solution.
04-07-2009 08:43 AM
1. Does you app keep on running, you can check this by creating a blinking User LED on the cRIO controller.
If you app is still running:
2. Check you CPU usage over time, a high CPU usage of higher priority than cRIO-PC communication could break the connection.
If you app has stopped:
3. Have you watched the memory usage over time? (Free and contiguous) I've also had problems like that, where there was free memory, but the lack of contiguous memeory made the app stop.
04-07-2009 02:41 PM
Hi Kenneth,
Thanks for the post and I hope your well today.
I have to agree on the CPU usage aspect.
I have seen many problems (in my own applications) where I have either not had any waits in my loops / or not used timed loops or that my code hasn't been efficent. For example, have you used any design patterns such as producer/consumer if you're acquiring at fast rates?
I was wondering if it would be possible to request the code? or at least the Host VI to see if there were any signs of what might be causing the connection to be lost?
Also, are you using shared variables? or anything else that my require extra processing?
I look forward to helping you to resolve your issue.
04-07-2009 11:17 PM