Set baseline and standard deviation standard to -999 on any error

Do not return -999 on error because this error code is used by Labview
internally