Wheel speed from encoder from NI-9403.

4 ビュー (過去 30 日間)
Rizwan Halani
Rizwan Halani 2019 年 6 月 13 日
回答済み: Dimitri MANKOV 2020 年 10 月 29 日
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.

回答 (1 件)

Dimitri MANKOV
Dimitri MANKOV 2020 年 10 月 29 日
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.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by