Read Active Error

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

General information about Read Active Error

The block receives an error number (starting at 1) and returns the number of active errors and the requested error data.

Block

ReadActiveError.png

Mask

ReadActiveErrorMask.png

Block inputs (inports)

Input: Number of the error in the error list. The error list can contain 64 errors, this input is the index in that list. It is not the same as the error parameter or error code.(uint8)

Block outputs (outports)

  1. The total amount of active errors. It is possible to define more errors in a model but only 64 can be active at a given time. This number can be used for the input of the block to cycle through the errors.(uint8)
  2. The error code of the currently selected (by the input) error.(uint16)
  3. The error parameter of the currently selected error.(uint8)
  4. The number of times that this error has occurred.(uint8)
  5. The time since the error has last occurred, in milliseconds, counted from the last reset/start.(uint32)


Block parameters

Parameter Description
Sample time Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.

Examples

Error Handling

See Also

Delete error | Clear errors | Read stored error | Search active error | Search stored error | Store error | Total Errors