When I return the value NAN from a CVI function in a DLL used as a code module, TestStand displays it as IND. I'm thinking the conversion is a feature of the CVI adapter.
I want it to show as NAN in my report. Will I have to do some manipulation to get that result?
Simple CVI function
#include <math.h>
void ReturnNAN(double *val) { *val = NAN; }
According to CVI's help for C99 extensions, NAN is a quiet NAN.
According to TestStand's help for special constant values, NAN is a quiet NAN, and IND is a Signaling NAN.
I'm using TestStand 2010 SP1 and CVI 2010. Could someone check this with TestStand 2013 and CVI 2013 for me?
Edit: I just tested with the C/C++ adapter, and I get the same behavior.
Edit 2: I just tested changing the sign of the return value (i.e. *val = -NAN). The value is still displayed as IND