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

조회 수: 1 (최근 30일)
Cesar
Cesar 2023년 11월 19일
답변: madhan ravi 2023년 11월 26일
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.

답변 (1개)

madhan ravi
madhan ravi 2023년 11월 26일
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

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by