Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to combine a pulse delayed with one reference pulse using one counter?

Hi all,

 

My task is to generate one reference pulse & one torque pulse which follows reference pulse by some delay.

 

Is it possible to generate these two pulses & repeate the same pattern by using one counter?

 

 

I have choosen X series card which have 100MHz base clock which can give me a minimum of 10nsec pulse.

 

Need your help

 

Regards,

Nilesh

0 Kudos
Message 1 of 2
(4,717 Views)

Hi Nilesh,

 

I actually posted an example code that does exactly this (decibel.ni.com appears down at the moment but will hopefully be back up shortly):

Generate Two Pulses Repeatedly Using a Single Counter

 

 

The downside to this method is that you cannot adjust the pulse width--I haven't tested it on the X Series using the 100 MHz timebase, you may need to reduce the timebase to get a clean pulse to export on the PFI line (can use 20 MHz or 100 kHz).  The bandwidth on the PFI lines is specced at 25 MHz.

 

 

If you only care about the time between reference and torque pulses (and not the time between each set of two pulses), you can run a simple finite counter output task over and over again in software. On the X Series cards finite counter outputs actually only use a single counter.  Our older devices (M Series, E Series, TIO) require the use of two counters for finite counter outputs.

 

 

Best Regards,

Message Edited by John P on 12-04-2009 01:16 PM
Message Edited by John P on 12-04-2009 01:17 PM
John Passiak
0 Kudos
Message 2 of 2
(4,711 Views)