02-02-2012 07:27 AM
I'm trying to set up a retriggerable digital pulse train generation on PCIe 6363 with LabVIEW with the additional feature of a variable initial delay.
For example:
- I have a fixed pulse train
- After 1st trigger it is generated with no delay
- After 2nd trigger there is a delay of 10µs
- Each subsequent trigger increases the delay by 10µs
I have tried to do this by writing new samples to the digital output task wich include an initial delay. Since there is limited control over how the buffering is handled this doesn't seem to work reliable with restartable and retriggerable ouput.
Is there any other way to do this maybe by using additional internal counter for the delay generation?
Thanks
Christoph
Solved! Go to Solution.
02-02-2012 02:59 PM
I'd look into using an additional counter as your delay generator. There's a counter property called
"Auto Increment Count" which lets you specify just such a regularly-increasing delay. Here's a
DevZone article and example that should help get you started.
The idea will be that the additional counter comes between your original trigger signal and the
finite pulse train you want to generate. The additional counter makes it's own triggered pulse
with an increasing delay after the original trigger, and your finite pulse train gets triggered by
the ouput from this additional counter.
-Kevin P
02-03-2012 04:10 AM
I agree with Kevin,
using additional Counter and cascading those is the way to achive the functionality needed.
Regards!
Moritz M.
02-03-2012 04:52 AM
Thanks a lot!
That is exactly the function i need.
Christoph