ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build pulse train using analog input as trigger

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:

 

flags.jpg

 

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

0 Kudos
Message 1 of 5
(3,867 Views)

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.

Richard






0 Kudos
Message 2 of 5
(3,849 Views)

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.

0 Kudos
Message 3 of 5
(3,845 Views)

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:change detection

 

 

 

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 4 of 5
(3,818 Views)

Hi Romain,

thanks for your help. I finally got this behaviour with this block diagram:

detect_flags.jpg

Regards,

Maria

Message 5 of 5
(3,806 Views)