AnsweredAssumed Answered

BadVal doesn't detect divide by zero errors

Question asked by VCampus-METCO on Apr 28, 2020
Latest reply on Apr 30, 2020 by VCampus-METCO

I have a problem in that the BadVal function in AF is not detecting a divide by zero error but instead throws up an exception. 

The PSE manual below states that the BadVal function will return TRUE if it detects such a condition but this does not work.

However, I still get a division by zero error as the value when I try this example.

The same behaviour also occurs for similar function returns, such as filtered averages, where you get back the status "all events filtered..." rather than this being trapped as a bad value and dealt with.


Is this a recent thing that has stopped working or is there some other reason why BadVal does not work as expected?