12-27-2012 02:18 PM
Hello,
I am using a PXI-6221 to create 2 generic analog output F1 and F2 with a specific period T. I also need to create a "timing function" FT, synchronized with F1/F2, consisting of N=6 pulses. The widths of the pulses are independent from each other, but their amplitude is the same.
Creating F1/F2 is not a problem, but I cannot obtain FT at the same time.
PXI-6221 only has 2 analog outputs, but has several digital I/O and 2 Counters. Can I use a counter (or a DIO) to create 6 independent pulses for period (FT)?
Thanks a lot for your help.
Best,
Gianni
12-28-2012 01:33 PM
Hi Gianni,
You should be able to create pulses using the counters as long as the width of the pulses is a multiple of the timebase. Here's an example that shows how to create a pulse train using a counter output. I hope this helps!
12-28-2012 05:50 PM
Hi dstrandb,
Thank you for your reply. I tryed to use the example you sent me as a starting point to create N palses of different width, but got a bit stuck.
For a given task I can only produce identical pulses. The only way I can produce two pulses with different duty-cycles (or frequency) is to execute two tasks.
Is there something I am overlooking?
Thanks,
Gianni
12-31-2012 09:12 AM
Hi Gianni,
I have a couple of clarifying questions for you. What exactly do you mean by "synchronized"? This term can mean a lot of different things. Also, can you explain what you are doing with FT a little more? Are you trying to programmatically change the period of FT?
Josh B
Applications Engineer
National Instruments