Simulink Encoder Block outputting pulses only?
Mostra commenti meno recenti
The Simulink "Encoder Input" block (Real-Time Windows Target toolbox) seems to output pulses only when the encoder is turned. It should be keeping track of full position and outputting accumulated ticks. How can the block be configured to output accumulated quadrature ticks?
I'm using an NI PXI-6221 DAQ card, with the appropriate wiring. I'm using counter0, which is encoder input 1.
Risposta accettata
Più risposte (1)
1 Commento
Jan Houska
il 22 Ago 2014
Input channels (and vector elements) in Simulink are always numbered starting from one. On the other hand, vendors often number the hardware channels starting from zero. Channel 1 is the first one, even if named Counter 0 by the manuacturer.
Categorie
Scopri di più su Development Computer Setup in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!