analog output arduino simulink

조회 수: 9 (최근 30일)
Robin
Robin 2016년 2월 16일
댓글: N/A 2017년 2월 13일
I would like to control the mass flow controllers of my experiment via an Arduino Mega and Simulink. However, while I can read and plot data very nicely using the function block Analog Read, there seems to be no function block for Analog Output. The digital output function is not suitable for my application, I need to set my equipment using analog input signals in the range of 0-5V. I would be very surprised if this was not possible in Simulink. I have installed the Arduino support packages.
Thank you for your help.

답변 (1개)

Emilie Delaherche
Emilie Delaherche 2016년 2월 17일
Hello Robin,
Try the PWM (Pulse Width modulation) output block: http://www.mathworks.com/help/supportpkg/arduino/ug/pwm.html
PWM enables a digital output to provide a range of different power levels, similar to that of an analog output. The value you send to the block determines this power level.
Hope this help, Emilie
  댓글 수: 2
Robin
Robin 2016년 2월 17일
Hello Emilie,
thank you very much for the fast response. Unfortunately I do not have this building block in my library. I found a library called Arduino IO, that contained the Analog Output.
Best, Robin
N/A
N/A 2017년 2월 13일
where did you found that arduino IO with analog output ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by