Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Output pulse every n units for x4 encoder

I found this on the National Instruments website showing how to ouptu a pulse every N input pulses, the issue is that I'm trying to do this on X4 decoding.  I have a NI9178, NI9401 and a NI9201, I'm trying to input an X4 encoder to my counter and subsequently output a pulse every N steps on a seperate line to trigger an external piece of hardware.   My encoder has 200PPR and runs at about 2000RPM.

 

Here's the link to the file:   http://zone.ni.com/devzone/cda/epd/p/id/3288

 

Thanks for any assistance you can provide,

Nick

 

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

So I have been trying to figure this issue out by using the forums and all I've managed to do is confuse myself.

 

I'm "simply" trying to output a series of pulses after counting N number of input pulses.  Here is the VI I'm working on (adapted from a previous forum post - Encoder VI for NI.vi is the main program).  There is one counter input and one counter output, along with some analog inputs (which for now can simply be ignored).  I'm trying to count the ticks off of Phase A from the input encoder and subsequently output a pulse every 100 ticks on the output counter task.  

 

 

 

Please if anyone has any suggestions I am very open to them. 

Nick

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

I don't know if you saw this forum post, but it has the most straightforward method for generating a pulse train every n ticks that I have seen. It has a couple of example VIs that are a bit more straightforward than the DevZone article you referenced.

 

Tim W.

Applications Engineering

National Instruments

http://www.ni.com/support 

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