Difference between revisions of "HANcoder/STM32/Blocks/Search Active Error"
From OpenMBD
Line 12: | Line 12: | ||
}} | }} | ||
+ | == Block inputs (inports) == | ||
+ | Input 1: The error code of the error that needs to be found.<br/> | ||
+ | Input 2: The error parameter of the error that needs to be found.<br/> | ||
+ | |||
+ | == Block outputs (outports) == | ||
+ | Output 1: The number of times that this error has occurred.(uint8)<br/> | ||
+ | Output 2: The time since the error has last occurred, in milliseconds, counted from the last reset/start.(uint32)<br/> | ||
+ | |||
+ | == Block parameters == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 20: | Line 29: | ||
| 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. | | 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 == | ||
+ | [[HANcoder/Examples/Error_Handling| Error Handling ]] | ||
+ | |||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/Delete_Error|Delete error]] {{!}} [[HANcoder/Clear_Errors|Clear errors]] {{!}} [[HANcoder/Read_Active_Error| Read active error ]]{{!}} [[HANcoder/Read_Stored_Error| Read stored error ]] {{!}} [[HANcoder/Search_Stored_Error| Search stored error ]] {{!}} [[HANcoder/Store_Error| Store error ]] {{!}} [[HANcoder/Total_Errors| Total Errors ]] | ||
+ | }} |
Revision as of 15:01, 20 April 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about Search Active Error
The block receives the error code and parameter, returning (if available) the found error data.
Block
Mask
Block inputs (inports)
Input 1: The error code of the error that needs to be found.
Input 2: The error parameter of the error that needs to be found.
Block outputs (outports)
Output 1: The number of times that this error has occurred.(uint8)
Output 2: 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
See Also
Delete error | Clear errors | Read active error | Read stored error | Search stored error | Store error | Total Errors