Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2 out of 5     Rate this Document

Using One Counter to Generate a Retriggerable Finite Digital Pulse Train with a PCI-6602 and DAQmx

Primary Software: Driver Software>>NI-DAQmx
Primary Software Version: 8.3
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Counter/Timers (TIO)>>Devices>>PCI-6602

Problem:
Is it possible to create a finite digital pulse train using only one counter on my PCI-6602 using DAQmx?

Solution:
Yes, there is a way to only use one counter to output a finite digital pulse train. Normally when performing a finite counter output operation, two counters are required. One counter is used to actually output the pulses and another is used to gate the first counter and therefore output a finite number of pulses. The way to accomplish this same behavior with a single counter is by setting up a continuous pulse output task with a start trigger and a pause trigger. The pause trigger takes the place of the second counter normally used as the gate signal, freeing this counter to be used for other operations. Using an external source to create a pulse of a desired width, a finite pulse train can be produced from a single counter on the PCI-6602.


Pause triggers are only valid for continuous sampling mode with implicit timing. You can find the properties for the proerpty node in the following locations:

Properties » More » Pause » Trigger Type
Properties » More » Pause » Digital Level » Source
Properties » More » Pause » Digital Level » Pause When


For each property, right-click the terminal and select Create » Control from the shortcut menu

Example Program

Related Links:

Attachments:


pauseonecounter.jpg - pauseonecounter.jpgSingle Counter Finite Digital Pulse Train.vi - Single Counter Finite Digital Pulse Train.vi



Report Date: 07/26/2006
Last Updated: 05/11/2007
Document ID: 3ZPA11IU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit