Saturday, September 25, 2010

VI to detect edges (transitions) in a bitstream

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)

  1. bitstream in -- 1-D array of Boolean
Parentheses ( ) indicate default value; square brackets [ ] designate units.

Outputs (Indicators)

  1. rising edge -- 1-D array of Boolean
  2. falling edge -- 1-D array of Boolean
  3. either 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 is T whenever the the input bitstream sequence changes from F to T.
  • falling edge is T whenever the the input bitstream sequence changes from T to F.
  • 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.
Figure 1: [video] LabVIEW coding tips and techniques for util_EdgeDetector.vi
Figure 1 (subVI_util_EdgeDetector-vi.htm)

Content actions

GIVE FEEDBACK:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Popular Projects

My Blog List

Give support

Give support
Encourage Me through Comments & Followers

Followers