Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

irregular pulse generation from a quadrature encoder

Hi all,

 

I have some questions about the generation of a output-pulse from a quadrature encoder on the input of (for example) the NI 6221.

Is it possible to generate a pulse every x counter values? Well, I think this should be possible!

But is it possible to change this x-value after each pulse? Especially if I have to set a new x-value every 2.5ms.

Or is it possible to tell the card an array of "Do-a-pulse-after-x-counts-after-your-pulse"-values so I have to tell only every ~1s?

 

Does anyone have experiences with such requirements?

 

Thanks, GrOl

0 Kudos
Message 1 of 2
(5,699 Views)

Hi,

 

I think you would have to use one counter to count up till x, then you would start the second counter and let it 

generate the output pulse you want. Afterwards you can update the x-value for the next pulse-generation.

But this would be all in Host-Software, no Hardware-Timing. If you want to do the

same in Hardware, I would recommend LabVIEW FPGA and a FPGA-Board.

 

regards

 

Marco Brauner NIG

0 Kudos
Message 2 of 2
(5,677 Views)