- Variable 'label' is inside the function. It is not visible in the mask workspace.
- disp(label), not disp('label')
- Use the following code for "Icon"
Simulink Mask won't display parameter values
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mark
il 19 Lug 2024 alle 14:10
Risposto: Fangjun Jiang
il 19 Lug 2024 alle 16:26
I want my masked subsystem to display two parameter values, but for some reason it is only displaying the variable name. I am not sure what the problem is. Photos are attached.
0 Commenti
Risposta accettata
Fangjun Jiang
il 19 Lug 2024 alle 16:26
Kp=get_param(gcb,"Kp");
Ki=get_param(gcb,"Ki");
str1="Kp="+Kp;
str2="Ki="+Ki;
label=[str1;str2];
disp(label)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Subsystems in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!