How to use a Simulink.Signal object to generate code?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!