If anyone cares, I found out that my stateflow has some deeper problems with installation or something. Because I sent my chart to a friend and he was able to execute it without problem. I am also having problems about simplest of functions like min max...
StateFlow Negative in Condition Issue
14 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone,
Earlier I was building a stateflow chart and when I was debugging it I run up into a weird bug. Apparently negation doesn't work(?) in conditions..
So I have this model;
Without negative (~) in front of conditio2 stateflow chart is working pretty well. But when I put negative in front of it, it gives an error and doesn't even say what is the error.
Here you can also find the model attached (using matlab R2015b 64-bit), hope you can make it work with negative!
I think I am missing something here but It's been late for me, hopefully you guys can come up with a solution, thanks to everyone in advance!
Edit : Ah, I mean it doesn't run with "it doesn't work". It just doesn't run, it gives me an error and only says: Error occurred in 'NegationIssue/Chart'. Though when I take the negative off, model runs smoothly.
回答 (1 件)
Sulaymon Eshkabilov
2019 年 8 月 19 日
One of the possible problems might be a built-in function assert(). Once I have had such problem and removed the wrong-placed assert() and everything started working normal again.
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!