Overview
The example demonstrates how to set a constant digital value using the DAQ pin of the Digital Output
Description:
This VI performs a buffered digital output that will write a digital output line high for a user specified period. It is designed for situations where repeatability is crucial, requiring a hardware-timed period.
The user specified time is multiplied by the clock rate, and an array of word integers is generated and written to the digital output device. The clock is generated by a dummy counter output task. There is also a correlated digital input that can be used to read the physical output from the device.
Steps to implement or execute code
To implement this example:
- Set the timing for how many seconds would the high states stay
- Run the VI
- (Optional) Turn on the Highlight Execution to see the flow of the VI
To execute this example:
- Install the required software.
- Connect the DAQ hardware that supports the DIO and Counter features
- Confirm the connection with the MAX with TestPanel
- Open the VI and refer the Implement Steps
Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible
Hardware
cDAQ with C series Digital IO and Counter Module


**This document has been updated to meet the current required format for the NI Code Exchange.**
Caleb Harris
National Instruments | http://www.ni.com/support