Input Capture Get
This MotoHawk™ block retrieves the last pulse width reported by the Input Capture behavior.
Block ID
Input Capture Get
Library
MotoHawk_lib/Advanced Digital I/O
Description
Use this block to retrieve the last pulse width reported by the Input Capture behavior. The units are in microseconds.
Optionally, the period may also be reported. This is also reported in microseconds. Also, the pin state (high or low) may be reported as well. 0 is low and 1 is high.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Name | Alpha-numeric text, single-quote enclosed | Name the input capture resource, must match exactly that in the Input Capture Definition block. No special characters, such as spaces, dashes, commas (underscore allowed). |
Output Period | Checkbox (enable) | Select to enable output period report (in microseconds). |
Output Pin State | Checkbox (enable) | Select to enable pin state report. |
Output Age | Checkbox (enable) | Select to enable measurement age (in microseconds) to be reported. The age is defined as the amount of time that has elapsed from the time the measurement completed until this Input Capture Get block requests the result. The start of the measurement can also be obtained by adding the age to the reported period/pulse width. Note that this feature may not be available on all targets. If not supported the build will produce relevant warnings or errors as appropriate. |