Skip navigation


Currently Being Moderated

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

VERSION 4  Click to view document history
Created on: Apr 8, 2009 9:24 AM by MargaretF. - Last Modified:  Aug 15, 2013 12:05 PM by MargaretF.


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.**

Comments (0)