To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
Demonstrates on writing to digital lines base on specified conditions.
Description:
On every iteration of the loop, the case structure will determine if the random number generated is greater than or less than 5, then takes action by writing out a digital line to configured port and line, either high or low.
Requirements:
Steps to Implement or Execute Code:
Block Diagram Steps:
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.