How can I use writePWMVoltage() in a matlab function ?
1 次查看(过去 30 天)
显示 更早的评论
Hello, I'm working on the simulation of a pressure sensor which return 0-5 V signal. So I use an arduino Mega to supply the analog signal. I succeded to simulate the sensor but when I try to set to zero my Ouput at the end of the programm it doesn't work : the voltage value decreases instantly then it increases gradually to a limit. It is very strange because when I execute my program directly in the command windows it works perfectly. I use the "writePWMVoltage()" function to create the analog signal which is read by an automaton M172 (SCHNEIDER ELECTRONIC).
Thank's for your help !
2 个评论
Madhu Govindarajan
2017-11-3
Could you post the critical portions of your function's code so that someone could see if you are doing something differently than intended because based on what you describe everything should work fine.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!