12-04-2009 09:03 AM
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
12-04-2009 01:15 PM - edited 12-04-2009 01:17 PM
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,