MotoHawk:Blocks:Fault Iterator

From MotoHawk
Jump to navigationJump to search

Fault Iterator

Use this MotoHawk™ block to iterate through the Fault Definitions in the Fault Manager, and get a fault_T reference to each one matching a given criteria.

Block ID

motohawk_fault_iterator

Library

MotoHawk_lib/Fault Management Blocks

Description

Fault Iterator.PNG

This block can be used to iterate through all of the faults, all faults not marked Disabled, the suspected faults, the active faults, or the occurred faults. Input a fault_T reference, and the next fault will be output. If a null fault_T is provided at the input, the first fault will be output. If no faults are available matching the given criteria, then the block will output a null fault_T, and the Valid output will be false. Because the output is null at the end of the iteration, it may be used as the next input, starting the iteration over.

Block Parameters

Parameter Field Values Comments/Description
Loop through Drop-down list Select type of fault to check, as listed.
Continue looping through faults Check box (enable) Enable to skip the null fault_T, and simply return to the beginning, and continue to iterate through faults. When this is checked, the Valid will remain true, and there will be no way to determine when the loop starts over. Of course, if no faults are available, the output will be null and Valid will be false.