05-23-2011 10:28 AM
Hi all,
I would like to build a diagram to generate a pulse train with a pulse width controlled by external triggers.
I have 2 analog inputs (FLAG1 and FLAG2) which I want to use to start pulse and stop pulse respectivelly.
I want to generate a digital pulse train using these external signals as triggers, in this way:
Could anybody help me on it?
I just have the trigger signals (FLAG 1 and FLAG 2) in a virtual channels (Dev1/ai0 and Dev1/ai2 on PCI-6036E). How can I generate the resulting pulse train?
Thanks in advance.
Maria
05-25-2011 09:56 AM
You can build a signal like that using Basic Functioin Generator.vi
It looks like all you need is a square wave with a different duty cycles, which that VI can do.
05-26-2011 04:19 AM
Thanks for your reply.
I think this module can be used in the block diagram, but I need to trigger the pulse (start and stop) with analog inputs (Dev1/ai0 and Dev1/ai2 from PCI-6036E), this is my main problem.
06-20-2011 08:16 AM
I agree with Broken Arrow.
The main problem is the hardware you wanna use the 6036E. Otherwise, the change detection polymorphism of the timing DAQmx VI would have been a good alternative if I don't misunderstand:
Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France
06-21-2011 04:32 AM
Hi Romain,
thanks for your help. I finally got this behaviour with this block diagram:
Regards,
Maria