From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

LabVIEW / Measurement I/O / NI-DAQmx / VI / NI USB-6002 / DAQ / Multifunction Device / Digital Output (DO)

Code and Documents

Attachment

Overview

Digital Output mode is used to generate output to digital ports/lines. The user requires to select the DAQmx Global Channel and click on the button corresponding to the port/lines, which will give a high output and LED goes high. The output is seen on the Multimeter.

 

Description

 Ports and lines are operated simultaneously with the digital input port.

Hardware and Software Requirements

 NI USB-6002, LabVIEW

Steps to Implement or Execute Code

 1. Connect USB-6002 through USB port.

 2. Download NI-DAQmx 18.0.0, Execute sample code "USB6002-DO-port" and run it.

 3. Click on the button corresponding to the port/lines.

 4. Monitor the subsequent DO line status (High or Low) on multimeter. 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors