Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

trigged generation of two pulse trains

I have to write an application that will generate two equal pulse trains (with a given phase difference) on two different counters when I recieve a trigger signal. I'm using a 6063daq-card. If anyone have an related example, or some hint on how to solve this (elementary problem) please let me know.
0 Kudos
Message 1 of 3
(3,322 Views)
Hi OG,

Although this functionality is present on NI-TIO counter/timer chips (NI-660x boards) by use of an initial delay within the counters (could program a delay equal to the desired phase shift) this is not available on DAQ-STC chips (E Series boards). This is because DAQ-STC counters do not support an initial delay in pulse train generation mode (driver doesn't support it).


The only way I see this happening is if you use the frequency generator on the E Series to generate your first pulse train (output on the freq_out pin) and use your two main counters to generate 1) a triggered and delayed pulse which will gate 2) your second counter which is a pulse train of the same frequency. To get the phase correct, your delay of the pulse should be equal to t
he desired phase shift of your pulse train period and should be gated/triggered by one of the rising edges of your frequency generator pulse train. The actual pulse width of this single pulse should be made as large as possible (or should toggle the output - see the 2nd knowledge base linked below). I have included a couple good references to get you started. Hope that helps. Have a good day.


How Can I Generate Two Pulse Trains without Using Both Counters on My E-series Data Acquisition Board?
http://digital.ni.com/public.nsf/ websearch/ 129541C85CEEDDBF86256ADF005C4409?OpenDoc ument


Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line
http://digital.ni.com/public.nsf/ websearch/ B8A49A4E33F38AB686256B610061DC6D?OpenDoc ument


Ron
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,322 Views)
Here are the links...repaired.

How Can I Generate Two Pulse Trains without Using Both Counters on My E-series Data Acquisition Board?
http://digital.ni.com/public.nsf/websearch/129541C85CEEDDBF86256ADF005C4409?OpenDocument


Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line
http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument

Ron
0 Kudos
Message 3 of 3
(3,322 Views)