필터 지우기
필터 지우기

Simulink Arduino Analog Input frequency problem

조회 수: 2 (최근 30일)
Giacomo Pedretti
Giacomo Pedretti 2015년 4월 22일
Hi, i have a problem interfacing arduino with Simulink. I connect the Analog Input block to a scope block in my smiling model. The analog input is physically connected to a pulse generator with pulse period of 10ms. In my simulink model i set the Analog Input frequency to 1ms. If i start an external simulation of 0.2 seconds the result on the scope is just some "HIGH" values point with a random distance one from the other. I have already set in the model configuration parameter the fixed step solver (ode3) with a fundamental sample time of 1ms. How can i have a decent result? Thank you

답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by