Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Generaet digital pulses and use as AI start trigger

Hi

 

I am using a USB6212 and CVI 2009.  I want to generate a pulse on PFI1 (no problem there) which is delayed by my hardware and is fedback as an input on PFI2.  I would like to generate a pulse on PFI3 that is delayed from the falling edge of the input on PFI2 (there are three different delays that I want to use, 0us, 1us, 2us).  In addition, I want to use the PFI3 output as the start trigger for an analog acquisition on AI0.  I have tried several times to get this to work, but I do not get the pulse on PFI3 and I get errors when trying to use PFI3 as the start trigger for AI0. The attached bimap is a picture of the above.

 

Any ideas?

 

Thanks

John

0 Kudos
Message 1 of 3
(6,104 Views)

Hi John,

 

If you get errors, it’s generally a good idea to post what errors you get. Do you need the output on PFI 3 to actually exit the device or just trigger the AI task? You could have a counter pulse output task set to trigger from PFI 2 and output to PFI 3. You can specify an initial delay to be what you need for your application. At this point you can loop PFI3 back into the device and start you AI task from another PFI line or use the counter output directly as the start trigger for the AI task. Let me know how that goes.

Matt
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(6,080 Views)

Thank you Matt

 

I found my errors and now the program is working.

0 Kudos
Message 3 of 3
(6,071 Views)