how to resolve an error mes like the one below?

Interface error:failed to resolve data 'y1' in chart to a valid simulink.singnal object.

1 Comment

The tags you used are product tags, not issue tags. Please read the guide to tags and retag this question. See http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags

Sign in to comment.

 Accepted Answer

It means you use "y1" as an input signal to the chart, but your model does not define y1 .

2 Comments

Could you be a bit more specific? I'm getting a similar error, "Failed to resolve data 'u1' in 'Matlab function for u1.' to a valid Simulink.Signal object."
where "Matlab function for u1" is a Matlab function block ( http://au.mathworks.com/help/simulink/ug/creating-an-example-model-that-uses-a-matlab-function-block.html ), and "u1" is the output from the block. The fn block thus creates the variable "u1," so your answer, "your model does not define y1" doesn't seem to apply here.
Could you confirm that your situation is that you are using a MATLAB Function Block in Simulink, and that you used one of the ways mentioned at https://www.mathworks.com/help/simulink/ug/signal-basics.html to name the output signal u1 ? And that signal is being routed into a Stateflow diagram, and is being referred to using the name u1 inside the Stateflow diagram ?

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!