MotoHawk:Blocks:Frequency Input Set Pulse Count
Contents
Frequency Input Set Pulse Count
This MotoHawk™ block is used with a [FrequencyInput.html Frequency Input] block that is operating in the "Provide Trigger After N Pulses" mode to set the number of pulses to observe between triggers.
Block ID
Frequency Input Set Pulse Count
Library
MotoHawk_lib/Advanced Digital I/O
Description
This MotoHawk™ block is used with a [FrequencyInput.html Frequency Input] block that is operating in the "Provide Trigger After N Pulses" mode to set the number of pulses to observe between triggers (N). This block is especially needed when the [FrequencyInput.html Frequency Input] block has been located within its own [FreqencyInputTrigger.html Frequency Trigger]. because the [FrequencyInput.html Frequency Input] block won't execute until there has been an edge, but the default number of pulses is zero on creation and so no edges can be observed. The set block provides a mechanism to set the number of pulses to a non-zero value from within another thread of execution (trigger). Most commonly this block would be placed in a start-up trigger if the pulse count was to be constant or within a time domain trigger if the pulse count will change at runtime.
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Name | Alpha-numeric text, single-quote enclosed. |
Choose the Name (from the [FrequencyInput.html Frequency Input] block) to specify the input channel to reference. No special characters, such as spaces, dashes, commas (underscore allowed). |