Can the I/A Series G3 kitControl Average object be configured to not output an NaN whenever any one of the inputs is NaN?

Issue

Can the I/A Series G3 kitControl Average object be configured to not output an NaN whenever any one of the inputs is NaN?

Product Line

TAC I/A Series

Environment

I/A Series G3 (all versions)

Cause

The Average object in kitControl checks the input to see if the input is valid (Returns true if the associated value is not disabled, fault, down, stale or null.).  However, the NaN value has no affect the status of the control point.  The point status remains 'ok' causing the Average object to process the input NaN value which in turn causes the output to indicate NaN.

Resolution

The object performing the average will "drop out" the value from the calculation if the input is null versus NaN.  One workaround is to create a program object with a matching input and output of BStatusNumeric type, intercept the NaN, and replace with a null whenever the input NaN condition occurs.  The following program object contains four inputs that can be linked between the active input signals and the inputs of the Average object.

Download the nan2null (nan2Null.bog) program object and save to a known location on the computer.
Copy the nan2null program object into the station database and link as required.