05-22-2015 03:21 AM
Why custom probe is not working if value is “NaN” ?
05-22-2015 03:56 AM
05-22-2015 04:23 AM
Thanks for your reply.
I think probe is working like secound approach (red area).
Why it is not working like first approach? because we already have LabVIEW vi to check NaN but why this function is not included in Probe?
as we know, we are not checking NaN directly with Equal then why probe is using same apporach?
05-22-2015 04:28 AM - edited 05-22-2015 04:31 AM
Hi Munna,
this conditional probe is made for general use: checking for equality of regular floating point numbers.
You want to check for a special (irregular) FP number - this is not covered by a simple "equal" operation as is written in the IEEE754 standard for floating point numbers. (Again: Wikipedia is a good source of information on this topic!)
You need to check for NaN using a special operation as NaN is handled special in floating point hard-/software!
One more fact: there is not just one special NaN, there are a lot of NaN values… (Read the specs!)
You know you can create your own specialized probes?
05-22-2015 05:40 AM
I would suggest that this is a bug in the probe, most likely because whoever wrote the code for the probe didn't think of that use case. In the LV version I currently have open the probe does have that code and does correctly detect NaN, so I guess someone noticed it at some point.
As Gerd said, you can create your own probes and LV has documentation for how to do this. You can also look at the existing probe at <LabVIEW>\vi.lib\_probes, but be aware that if you change it, those changes will only apply on your computer.