Solution
To convert NaN values to another value (for example, 0) in VeriStand, one approach is to create a custom device for the conversion.
Custom devices can be created in LabVIEW. By using the Not a Number/Path/Refnum? function available in LabVIEW, you can determine whether an input value is NaN.
Using this Boolean result along with a Select function, you can define an alternative value to use when the input is NaN. By outputting this value from the custom device and mapping it to the model input, you can avoid passing NaN values into the model.
The figure below shows an example of how this can be implemented in an Inline HW Model custom device. Depending on your setup, you may also consider implementing this using other custom device architectures.
