11-03-2011 09:11 AM
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
11-03-2011 02:17 PM
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
11-07-2011 10:02 AM
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