Example Code

Retriggerable Analog Output with Analog Trigger

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
The example is to demonstrate the use of the Analog Trigger to initiate the retriggerable instance of the Analog Output

Description:
This VI would offers the solution with the DAQ device that do not support retriggerable IO by using two onboard counters to generate retriggerable pulse trains that would be used for sample clock for the analog output task. The VI would use the analog PFI line (API0) to trigger the analog output task that eventually sends a trigger to the counter output task.

Steps to Implement or Execute Code:
To implement this example:

  1. Define the Physical Channels of the Analog Output and Trigger
  2. (Optional) Set the value of the rest parameters as needed
  3. Run the VI
  4. (Optional) Turn on the Highlight Execution to see the flow of the VI


To execute this example:

  1. Install the required software.
  2. Connect the DAQ hardware that supports the Ao and CO features
  3. Confirm the connection with the MAX with TestPanel
  4. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 9.0 or compatible

Hardware
cDAQ with C series Analog Output and Counter Output Module

 

fb.PNG

 

 

fb.PNG

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

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test

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

Comments
fdgdfgfg
Member
Member
on

The program works just as it says.  For my application,  setting the cycles to buffer to 1 and samples to buffer to 50 allows me to generate a pulse of ~15microseconds whenever the analog trigger is set off.

M. Abbey
Member
Member
on

I am using Labview 2011 and it can't find Waveform Buffer Generation.vi

AeroVironment_Inc
Member
Member
on

With each new release of LabView you will need to direct the older VI's to the new folder.

It will be here:

C:\Program Files (x86)\National Instruments\LabVIEW 2011\examples\DAQmx\_Utility

The LLB manager will show the needed VI's. Select on the VI and then OK the referance change.