03-12-2007 12:17 PM
Hi,
I am using the chassis for compact DAQ with NI 9211 24 bit thermocouple differential analog input module. I have made a program in labView to determine mass flow etc…
However, once the mass flow has reached a value close to zero during a test, the indicator shows
Thank a lot
Regards-Glenn
03-12-2007 12:21 PM
NaN means Not a Number and is a special value defined for an invalid number (like what you get if you divide by 0), so your number should not be "close to 0" but an invalid number.
If you still want to display 0 instead of NaN, you can use the Not a Number\Path\Refnum function from the comparison palette which will return T if the number is NaN and replace the value, but I would not recommend that in most cases.
03-12-2007 12:22 PM
03-12-2007 12:23 PM - edited 03-12-2007 12:23 PM

Message Edited by altenbach on 03-12-2007 10:24 AM
03-12-2007 12:37 PM
03-12-2007 01:10 PM
03-12-2007 01:20 PM
03-13-2007 04:23 AM
Thanks guys.
That s really helpful
Glenn
03-13-2007 12:44 PM
A little off-topic, but here's one little NaN tidbit:
I've found them useful as default values on wired controls in (semi-)intelligent subvi's. This gives me a means for determining whether the caller function wired an input or not. After checking for NaN, I can then decide whatever I want to use as a replacement value, and that decision can be dynamic.
For example, I may store the most recent "legal" input in an unitialized shift register, which I can then use in place of an unwired "NaN" input. Or I may make a vi for PV=nRT which can auto-detect which inputs are wired and know how to calculate the other parameter. Etc.
Share and enjoy...
-Kevin P.
03-13-2007 12:57 PM
@Labtrainer wrote:
Thanks guys.
That s really helpful
Glenn,
You're welcome! One easy way to thank would be to just look in the lower right corner of each reply and click on the circle that's all the way to the right. 😄
Christian