Filter löschen
Filter löschen

How to use a Simulink.Signal object to generate code?

1 Ansicht (letzte 30 Tage)
Cesar
Cesar am 19 Nov. 2023
Beantwortet: madhan ravi am 26 Nov. 2023
I want to generate code using a simulink signal, but i get the following error. "Port {input_port_name} cannot be set as 'Value', since it holds non-scalar value. " where does this error comes from and how to solve it?.
I have teste to compile the model before building it and by compiling shows no error.

Antworten (1)

madhan ravi
madhan ravi am 26 Nov. 2023
Make sure that the signal resolves to Simulink Object. If it still causes problem , provide a screenshot of how the signal is being used and it's inport block properties slong with how the signal is defined as Simulink.Signal

Kategorien

Mehr zu Event Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by