LabVIEW SubVI: util_EdgeDetector.vi
- Description: Detect edges (transitions) in a bitstream, and indicate rising edge, falling edge, or either edge as three distinct outputs.
- Category: General-purpose utility ("util" prefix)
Inputs (Controls)
bitstream in
-- 1-D array of Boolean
Parentheses ( ) indicate default value; square brackets [ ] designate units.
Outputs (Indicators)
rising edge
-- 1-D array of Booleanfalling edge
-- 1-D array of Booleaneither edge
-- 1-D array of Boolean
Required Behavior
- Each of the three Boolean output indicators is an array of the same size as the input bitstream.
rising edge
isT
whenever the the input bitstream sequence changes fromF
toT
.falling edge
isT
whenever the the input bitstream sequence changes fromT
toF
.either edge
is the logical "OR" of the previous two indicator outputs.
LabVIEW Coding Tips
View the screencast video in Create a SubVI in LabVIEW to learn the mechanics of subVIs.
Refer to the Figure 1 screencast video for LabVIEW coding tips and techniques specific to this subVI.
No comments:
Post a Comment