Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a pulse train with different pulse width and delay?

How to generate a triggered pulse train with different pulse width. for example, after each trigger signal, let's say 2 ms, then the counter output a pulse with pulsewidth of 1 ms, and then after 3 ms delay after the first pulse, the second pulse was generated with a pulse width of 4 ms.  Next cycle when the trigger signal comes, the same two pulses will be generated and so on. Is it possible to achieve this by using 6601 counter card? and if yes, how to achieve this? Thanks!
  
0 Kudos
Message 1 of 2
(3,529 Views)

Unfortunately you can not create a hardware timed pulse train with different widths on each pulse from a counter. Whilst it can be changed on the fly using software, since you require a hardware triggered signal getting the software involved will not give a huge amount of accuracy when the pulse will actually change.

 

 

 

So in short you can't use your 6601 card (or a counter timer) to achieve this

 

 

 

There are three possible Alternative solutions

 

 

 

1 You could use a high speed digital IO device such as the (6533/34) to generate your variable signal which would require setting up the pulse train as a series of states based around the burst transmission mode where the clock would give you your specific timing.

 

 

 

2 A timed analogy output (for example on a MIO card with a clock (PCI-6220 / 62xx), i.e. Not the 6704 style static analogy output cards)

 

 

 

3 A high speed digital waveform card such as the (, 656x , 655x, 654x, 6534, 6533), this could then be scripted to work with your triggering and also there is a digital waveform editor which will enable you to set up the pattern you wish to generate (https://www.ni.com/en-us/shop/product/digital-waveform-editor.html) 

 

 

 

Hope that helps

 

 

 

Tim Matthews

 

 

 

NI (UK)

 

 

 
 
 
0 Kudos
Message 2 of 2
(3,518 Views)