Why i am getting this error "Input data dependency violation due to action subsystems.:

156 views (last 30 days)
Hi, I am facing this error while trying to run simulink "Input data dependency violation due to action subsystems.." I have posted the screenshots for which I am receving tons of errors. Please can someone tell me why is this happening?
Also I posted the screenshot of my simulink project. Technically I do not find any errors. But if some can help me with this project I would highly appreciate. My project is about controlling the temperature using fuzzy logic controller.

Answers (1)

Walter Roberson
Walter Roberson on 7 Nov 2017
At time T, you have signal going into Subtract. Subtract is instant, so at time T, the result of Subtract is going into Switched Derivative and also going through through. Switched Derivative is instant, so at time T, the two values are going into the fuzzy controller. Fuzz controllers are instant, so at time T, there is output based upon that input signal.
Now the output of the fuzzy controller is at time T, and it is being routed back to input of Subtract, still at time T. But if that result was different than whatever the value was on the line at the time that the Subtract started, then that would lead to an inconsistency.
To avoid a problem, Simulink needs to look through all of the internal parameters of the items in this loop and try to tweak the parameters and initial conditions so that no matter what the signal is at time T, that Simulink is able to fix up the initialization so that there is no inconsistency.
Unfortunately for you, Simulink cannot figure out how to initialize all the possible parameters in such a way that there is no inconsistency.
Now, if only one of those blocks was not instant, then the looped-back item would not be arriving at the exact same time as whatever was there before...

Categories

Find more on Dependency Analysis in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!