Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating N pulses of different width

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

 

0 Kudos
Message 1 of 4
(3,016 Views)

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!

 

 

David S.
0 Kudos
Message 2 of 4
(2,996 Views)

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

0 Kudos
Message 3 of 4
(2,989 Views)

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

Josh B
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,971 Views)