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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 22 Nov. 2012

0 Stimmen

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

2 Kommentare

Michael Hodgson
Michael Hodgson am 8 Okt. 2021
Bearbeitet: Walter Roberson am 8 Okt. 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.
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 ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Decision Logic finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by