11-21-2007 08:23 PM
11-21-2007 09:22 PM
ivto wrote:
1. Is my theory possible?
2. When the code in a timed loop crashes, is it true that the the main program and other timed loop can still run?
3. I understand that only one watchdog is available in the RT system. Is there any workaround so I can put one watchdog to each timed loop? A standalone watchdog loop could not catch this problem because the main program was still running.
11-26-2007 11:18 AM
11-26-2007 02:57 PM - edited 11-26-2007 02:57 PM
ivto wrote:
If I put a "write text file.vi" to log a message before the "DAQmx Read vi" and one to log after it, I only saw the label before the DAQmx Read after a lock-up. So it either took forever to run the DAQmx read like you mentioned, or the timed loop just crashed.
Why would the DAQmx Read behave like this? Is there anything I can do to prevent it from happening?
ivto wrote:
I am going to try your suggestion by adding a software watchdog. It would be very helpful if you could send me some sample code. 😉
I don't know enough about debugging RT system's to comment on this. What you have done so far with the log file was a good technique to allow you to discover where in your code the problem is.
ivto wrote:
In general, what is a preferred way to debug a RT system?
11-28-2007 03:38 PM