Detailed Fault Status Get
This block reports the current status of the specified faults.
Block ID
Detailed Fault Status Get
Library
MotoHawk_lib/Diagnostics
Description
This block retrieves the current status of the fault statuses specified by the "Fault Status Names" that were defined by the Detailed Fault Status Definition block.
Fault Status Values
OK (value=0)
The fault is not occurring.
Fault (value=1)
The fault is occurring or was observed since the status was last requested. Hardware that is able to latch the occurrence of a fault will return a Fault status even if the fault was intermittent and has since ceased. A subsequent status read would report OK.
Indeterminate (value=2)
Indicates the fault may or may not be occurring. The underlying detection cannot make a firm determination.
Not supported (value=3)
Indicates the hardware doesn't support the requested fault type.
"motohawk_fault_status_enum" is a script that returns a cell array with the above enumerations. It can be used in the Enumeration field of a probe to decode the return value of this block.
Fault Status Name Configuration
There are two methods available to construct the fault status names that this block is to recover. The available "Fault Status Names" are defined by the Detailed Fault Status Definition block and are listed on the block. "MyFault_Open_circuit" and "MyFault_Short_circuit" are examples of Fault Status names.
By Reference Name
With this approach the user specifies what "Fault Status Names" are to be recovered by specifying the Reference Name to be the Name of the Detailed Fault Status Definition and then constructing a cell array of Fault Names.
If this method were to be used to recover "MyFault_Open_circuit" and "MyFault_Short_circuit" then Reference Name would be set to 'MyFault' and the Fault Names would be {'Open_circuit','Short_circuit'}.
Absolute reference
With this approach the user specifies what "Fault Status Names" are to be recovered by explicitly specifying the Fault Status Names in the form of a cell array. The advantage of this approach is the developer has the flexibility to select fault statuses from multiple definitions.
To recover "MyFault_Open_circuit" and "MyFault_Short_circuit" with this method a cell array like so {'MyFault_Open_circuit','MyFault_Short_circuit'} would be specified.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Use Reference Name | Check Box | Check this box if the by reference method is to be used to create the "Fault Status Names" list. |
Reference Name | Quote enclosed alpha numeric | Set to the value of the Detailed Fault Status Definition block that this block is to recover. Only visible when Use Reference Name is checked. |
Fault Names | Edit (Cell) | Cell array of strings specifying the fault portion of the "Fault Status Name" as described here. Only visible when Use Reference Name is checked. |
Fault Status Names | Edit (Cell) | Cell array of strings specifying the entire "Fault Status Name" as described here. Only visible when Use Reference Name is not checked. |