Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Using Case Structures to Turn On and Off a Digital Line Based On a Condition

by Margaret F. ‎04-08-2009 09:24 AM - edited ‎01-30-2017 10:13 AM


This example demonstrates how to write a digital response from a case structure.


This example determines if a random number is greater than or less than 5, then takes action by writing out a digital line to either high or low.

Steps to Implement or Execute Code

  1. Configure the block diagram DAQ Assistant express VIs to your digital hardware.
  2. Run the code
  3. Observe the digital lines response to the number on the front panel.



This code will work with LabVIEW 8.6 or later.

VI Snippet

Using Case Structures Digital Write.png

**This document has been updated to mee the current required format for the NI Code Exchange. For more dtails visit this discussion thread.**