Example Code

Periodic Regeneration Stop at Specific Sample

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 how to stop at the specific sample of the Analog Output generation of the signal

Description:
Generating the signal from the Analog Output, we could utilise the Counter Output as the detector of the periodic pulse (for the CO pulse Tick) that eventually could be used for the trigger of the Counter Output Pulse for stopping the Analog Output generation

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

  1. Since the Analog Output and Counter Outputs are already set, define the index value to stop on
  2. Run the VI
  3. (optional) Turn on the highlight execution for understanding the block diagram

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

 

bd.PNG

 

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

Barron
Applications Engineering
National Instruments

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