The safety model checks, if values are in a safe range. If this is not the case, it overwrites the control value to the save state.
In order to get some feedback, when the values are overwritten, error codes are generated.
The error handler loop in the VeriStand Interface translates those codes to the error, defined here.
In the GUI, the 'Error Codes' tab shows the error type and a short description of the error.
The code creats a signal list with all error signals from the controllers and reads their values. If they are 99999, there is no error, else it is translatet into its type and description based on Error Handler