Example Code

DAQmx Pulse Delay Generator

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

Download All

Overview

This example demonstrates how to create an 8 channel pulse delay generator with the PXI/PCI-6602. 

 

Description

This delay generator creates a series of pulses at different delays on each channel from a common trigger.Delay generators are often sold as stand-alone devices - here we are purposing a counter/timer board to act as a delay generator.  The inputs are being presented in terms of Pulse Width, Duty Cycle, and Initial Delay in seconds, not in terms of ticks. This example will also work with the PXI-6608. 

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

1. Load the Delay Generator LV_82.vi

2. Specify the counter, pulse width, duty cycle, and initial delay for each channel.

3. Set up the trigger source.  The other values trigger parameters will usually remain constant.

4. Run the VI and send the 6602 a trigger on the trigger source channel.

 

Additional Information or References

fp2.jpg

bd2.jpg

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

 

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer

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

Comments
munsmat
Member
Member
on

This appears to generate multiple pulse trains all relative to a single trigger edge. Repeated triggers will have no effect on subsequent pulse train generations (even with the retriggerable property enabled), because the counters are already generating pulses (and thus the retrigger is ignored).

Am I understanding this correctly?