Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Know When My Finite Pulse Train Is Done?

Hardware: Multifunction DAQ (MIO)

Problem:
I am generating a finite pulse train using a counter with NI-DAQmx. I need to know when my finite pulse train is done. I tried using the Is Pulse Done? and Ready For New Value DAQmx Channel Property Nodes, but they don't work. How can I tell when generation is complete for a finite pulse train?

Solution:
The Is Pulse Done? and Ready For New Value DAQmx Channel Property Nodes only work with single pulses.  In order to use one of these property nodes to check when pulse train generation is complete, you will need to set up the pulse train as two counter tasks.  Configure the tasks so that the first counter outputs a continuous pulse train, while the second counter creates a pulse (pause trigger) to allow a certain number of pulses from the first counter to pass.  You can use the second counter with the DAQmx Channel Property nodes mentioned to measure when the pulse train is done. The list below shows the steps to follow:

  1. Create a continuous pulse train on one counter.
  2. Set up another counter to be used as the pause trigger. This counter will generate a single pulse that is active for the duration of time that the finite pulse train should be generated. Since this will be a single pulse (and when this pulse is done, the pulse train is done), you can use the property node with this counter to see if the pulse train is done.

See the attached image for an example of how to implement this in LabVIEW.

Related Links:

Attachments:
Train.jpg




Report Date: 06/28/2007
Last Updated: 10/22/2007
Document ID: 4AR9T749

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