In Simulink, how to call the same subsystem several times to do a calculation?
Mostra commenti meno recenti
I want to do a calculation for each if elseif output values(data) using a same subsystem(functionA)
if(u==1){
data1 = 10;
data_out1 = functionA(data1);
}
elseif(u==2){
data2 = 20;
data_out2 = functionA(data2);
}
elseif(u==2){
data3 = 40;
data_out3 = functionA(data3);
}
.
.
else{ }
For better understanding of my question I attached the simulink model which I want to modify.

Each outputs from 'if' block should go through the ADC_To_Temp1 subsystem for additional calculation.

This is the "ADC_To_Temp1" subsystem which I want to use for the additional calculation.
Please let me know how to do this.
Thank you
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Schedule Model Components in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
