(0)| 5/4/2015 8:18 AM | |
|
Posts: 49 Rating:
|
Hello All, We are facing one urgent issue based on PID controller. We have one PID function which is used multiple times in a program, but at one instance we are facing problems of that PID out give wrong value & stuck to i.e #QNAN in Out1 AND PT1_VAR. Please refer attached screenshots for more details. Let me know how this value get generated & how it can be diagnosed. Regards Jenish Shivshaktiwala. AttachmentQNAN.zip (366 Downloads) |
| 5/5/2015 1:09 PM | |
|
Joined: 1/17/2007 Last visit: 1/8/2026 Posts: 1561 Rating:
|
QNAN stands for quiet "not a number". see http://en.wikipedia.org/wiki/NaN Not a number is the floating point exception error that is a result of a floating point operation that is either illegal (i.e. division by zero) or which the result is indeterminate (e.g. 0 / 0). The quiet bit means that is a "soft" error which will not propagte trough the entire real number calculation trail. So you have a value or values that are being used in a floating point calculation that has resulted in a floating point exception. The most likely cause is a division operation. Check your divisors. |
|
Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
Follow us on