Hi , I want to control speed of my motor with motor speed sensor. So that i want to calculate rpm of my motor. i have 2 questions in this subject
1- where should i write reading code for sensor. I mean i don't want to read rpm when i press a button. i want to run it always. which part of MATLAB gui execute codes repeatedly. i dindt understand this part
2- what is the way of counting pulses from my sensor.
Maybe I can't explain myself. I did simple examples and have enough knowledge about this project. But I could understand next step. I can drive motor with Matlab gui, I can change its speed , but can't do pulse counting right know. I ve read lots of documents and watch videos. In the end i m asking pros to draw path to me. Probably people can understand where I m struggling and I expect them to to show me right path. Am I wrong ?
Thank you for ur help. But Actually my main problem is not pulse counting. I asked it to learn preferred way in Matlab. In Arduino ide it s not confusing ( interrupt) but in Matlab GUI it is possible to use interrupts? I am asking this in 2nd question. But still i don't know where should I do it in Matlab GUI because it doesn't have loop function. Or any saperate function. And I get confused in here