If-Else inside Stateflow Chart
46 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rashmi Bharadwaja
am 18 Aug. 2017
Kommentiert: Rashmi Bharadwaja
am 22 Aug. 2017
Hello all, I am using if-else conditions indside a stateflow chart. When I try to simulate the chart, I get model and coder error. The error says "Chart input data 'signal_name' on left hand side of an expression. I am not able to figure the problem. If anyone knows a solution to this, please let me know.
Thanks in advance.
Cheers, Rashmi
0 Kommentare
Akzeptierte Antwort
ES
am 21 Aug. 2017
In that case You have to implement a new output variable (output to Simulink). And to this output variable, you can assign the input variable's value.
You can't set value to an input variable.
Weitere Antworten (1)
ES
am 18 Aug. 2017
From the error, I think you are trying to assign value to an input signal example {signal_name = xyz}. This is not possible.
What is the exact error message? and when do you get it?
Siehe auch
Kategorien
Mehr zu Stateflow finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!