Example Code

Using DAQ Signal Accessory Button as External Digital 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

This example demonstrates how to utilize the digital trigger on the DAQ Signal Accessory in order to trigger an external device. The DAQ Signal Accessory does not contain any digital output thus a workaround is needed.


Description

This VI generates a pulse train of 1 or more pulses on the counter when the trigger button is pushed. Therefore it is now possible to route the output of this counter to an external device requiring a trigger.

Requirements

Software

  • LabVIEW 2009 or compatible
  • DAQmx 8.9.5 or compatible

Hardware

  • The DAQ Signal Accessory (now EOL) , does not include other DAQ accessories like the SCB-68A
  • Most NI DAQ cards


Steps to Implement or Execute Code

  1. Download the VI
  2. Configure the frequency of pulse(s) and the number of pulses on the front panel
  3. Configure the counter resource and the source of the trigger on the block diagram
  4. Connect the output of the trigger signal to the external device
  5. Run the VI


Additional Information or References

DAQ Signal Accessory User Guide


  Block Diagram

ExportDigitalTriggerOnCounterOut.png

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

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

Comments
cheikh
Member
Member
on

Hello,
I  am studying in final year of study in mechanical engineering and have a final  project studies to be undertaken. I  want to make an acquisition on synchronous channels with LabVIEW and do not know  what function is best suited. In  fact, I do synchronization between a machine and camera. That is, each signal level of the  machine, the camera must be triggered automatically in order to make a  screenshot. The frequency of the machine is  5Hz. I  thought about using a capture card that will allow me to convert the analog  signal from the machine into a digital signal (input from the camera). The problem I'm experiencing  right now is: How do the program in LabVIEW that will make the automatic. It's  very urgent. It  only remains for me only two weeks to finalize the project.
Thank you for your reply. Please contact me in my personal adress: cheikhba02@gmail.com
  
Best regards 

Contributors