Overview:
Demonstrates on regulating the width of digital pulses programmatically.
Descriptions:
This examples allows the user to regulate the low and high time of the digital pulse on the fly.
Requirements:
- LabVIEW 2012 or compatible.
- NI-DAQmx 15.5.1 or compatible.
Steps to Implement or Execute Code:
- Select digital lines at which the digital signal will be generated.
- Set the Low and High Time (ms). You may also change this while the VI is running.
- Run this VI.
Block Diagram Steps:
- Creates a Digital Output channel to generate digital pulses.
- Write a single sample into the card buffer.
- Specifies whether to invert the lines in the channel. If you set this property to TRUE, the lines are at high logic when off and at low logic when on.
- Transitions the task to running state to begin generation.
- Depending on the iteration count, the digital output channel will write a low and high alternately.
- Clears the task.
- Displays any error occurs.


**This document has been updated to meet the current required format for the NI Code Exchange.**