how to resolve an error mes like the one below?
1 view (last 30 days)
Show older comments
lakshmi Krishnan
on 22 Nov 2012
Commented: Walter Roberson
on 8 Oct 2021
Interface error:failed to resolve data 'y1' in chart to a valid simulink.singnal object.
1 Comment
Walter Roberson
on 22 Nov 2012
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
Accepted Answer
Walter Roberson
on 22 Nov 2012
It means you use "y1" as an input signal to the chart, but your model does not define y1 .
2 Comments
Michael Hodgson
on 8 Oct 2021
Edited: Walter Roberson
on 8 Oct 2021
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.
Walter Roberson
on 8 Oct 2021
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 ?
More Answers (0)
See Also
Categories
Find more on Simulink Functions 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!