Wheel speed from encoder from NI-9403.

3 visualizaciones (últimos 30 días)
Rizwan Halani
Rizwan Halani el 13 de Jun. de 2019
Respondida: Dimitri MANKOV el 29 de Oct. de 2020
I have data coming from an encoder into a wheel into an NI-9403. I wanted to know if there is a way to use a counter to convert to wheel speed as the NI-9403 does not have one. The approach I was taking was to output a 1 whenever the encoder did not read 0. From there I wanted to try and add the 1s together and divide by a time period to get wheel speed. Is there such a block to that will get a time interval and reset the 1s? I am using the digital output block.

Respuestas (1)

Dimitri MANKOV
Dimitri MANKOV el 29 de Oct. de 2020
Hi Rizwan,
What MATLAB Release are you using? Please note that support for custom target hardware (including the NI-9403) has been removed from Simulink Real-Time in R2018a. Starting from that release, only Speedgoat target machines are supported. Speedgoat offers encoder measurement and emulation modules fully compatible with the latest MATLAB releases.
For more information, have a look at www.speedgoat.com and at the Release Notes for Simulink Real-Time.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by