Example Code

Generate Pulses from Digital Lines Sequentially

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview:
Demonstrates on generating pulses on every Digital Output lines.

Description:
This code will continuously generates 8xN array of Booleans, with N points per period using onboard clock.
Note: Using the counter method of generating a PWM output is recommended.

Requirements:

  1. LabVIEW 2012 or compatible.
  2. NI-DAQmx 15.5.1 or compatible.
  3. NI DAQ devices with onboard clock and digital lines.


Steps to Implement or Execute Code:

  1. Specify the DAQmx Physical Channel corresponding to the port at which pulses will be generated.
  2. Specify all other controls on the front panel which reflects the pulses configuration.
  3. Run this VI.

Front Panel.PNG

 

 

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

Thomas C.
FlexRIO Product Support Engineer
National Instruments

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

Comments
mkyzxd
Member
Member
on

Hello,

Can anyone post the picture of the 8chansoftwarePWM.vi? Or it would be greatly appreciated if the program could be saved for proper open using Labview 7.1.

Thanks,