how to a real time control between ardunio and simulink model based on gui ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/305799/image.png)
function p_button_Callback(hObject, eventdata, handles)
% hObject handle to p_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
a=get(handles.edit_pGain,'String');
load_system('water_level');
find_system('Name','water_level');
open_system('water_level');
set_param('water_level/PID/Pr','K',a);
we can change the value of the simulink model by using this gui code but it's nor working in real time. We wanna the axes1 will show the changing in real time that includes the parameters changing in real time. Please help me about that. How to write gui code? Thanks
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!