Wheel speed from encoder from NI-9403.

4 views (last 30 days)
Rizwan Halani
Rizwan Halani on 13 Jun 2019
Answered: Dimitri MANKOV on 29 Oct 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.

Answers (1)

Dimitri MANKOV
Dimitri MANKOV on 29 Oct 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.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!