Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems

1,284 views
Skip to first unread message

Tim DeGrasse

unread,
Apr 12, 2010, 8:10:06 PM4/12/10
to
Im trying to connect an "If Action Subsystem" block to a "Multiport Switch". Im using an edge activated counter to feed into the control input of the Multiport switch. I get the error warning

"Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems"

Has anyone had an error like this at all or know any other methods to use an if/else situation to control a switch? thank you

Tim DeGrasse

unread,
Apr 12, 2010, 8:11:06 PM4/12/10
to

Riccardo

unread,
Apr 13, 2010, 4:13:05 AM4/13/10
to
"Tim DeGrasse" <sokke...@yahoo.com> wrote in message <hq0cou$j6o$1...@fred.mathworks.com>...

> Im trying to connect an "If Action Subsystem" block to a "Multiport Switch". Im using an edge activated counter to feed into the control input of the Multiport switch. I get the error warning
>
> "Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems"
>
> Has anyone had an error like this at all or know any other methods to use an if/else situation to control a switch? thank you

Check the implications of using an action SS. The error message suggests that its execution context is incompatible with the logic you want to implement. May be changes to the connection between SS and switch may fix the issue.

If/else can be done with switch blocks as well - although not so efficiently as with action SSs.

Guy Rouleau

unread,
Apr 13, 2010, 6:30:27 PM4/13/10
to
"Tim DeGrasse" <sokke...@yahoo.com> wrote in message <hq0cou$j6o$1...@fred.mathworks.com>...
> Im trying to connect an "If Action Subsystem" block to a "Multiport Switch". Im using an edge activated counter to feed into the control input of the Multiport switch. I get the error warning
>
> "Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems"
>
> Has anyone had an error like this at all or know any other methods to use an if/else situation to control a switch? thank you

I recommend typing at the MATLAB prompt:

sl_subsys_semantics

This will open the demo which explains all types of error related action subsystems. You should be able to find a red example that reproduces the error your receive and a green that shows how to work around.

Guy

Hammad

unread,
Jun 14, 2011, 11:30:20 PM6/14/11
to
"Tim DeGrasse" <sokke...@yahoo.com> wrote in message <hq0cou$j6o$1...@fred.mathworks.com>...
> Im trying to connect an "If Action Subsystem" block to a "Multiport Switch". Im using an edge activated counter to feed into the control input of the Multiport switch. I get the error warning
>
> "Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems"
>
> Has anyone had an error like this at all or know any other methods to use an if/else situation to control a switch? thank you

I am guessing that you would have solved the problem by now. Just for info putting a unit delay at the input can hopefully solve your problem.

Kind Regards

Hammad Khan

amit satapathy

unread,
Mar 10, 2016, 8:44:21 PM3/10/16
to
connect delay block at the input..perhaps it will work

amit satapathy

unread,
Mar 10, 2016, 8:45:21 PM3/10/16
to

SREEJITH VS

unread,
Mar 14, 2017, 12:24:08 PM3/14/17
to
Wow. It worked for me. Thank you.

Sreejith



"amit satapathy" wrote in message <nbt7td$11b$1...@newscl01ah.mathworks.com>...
0 new messages