Problem passing index to GetSet function
1 次查看(过去 30 天)
显示 更早的评论
When I define a Simulink.Signal with dimension >1 and set it's storage class to GetSet it will generate a C function call like this:
get_MyChar( MyIndex )
Problem is when I define that same signal as a struct. It will then generate the C function call as:
get_MyStruct()[MyIndex]
My problem is that I need that signal to resolve to a call that receives the index, just like the first example was doing when I define the signal type as uint8.
Any clue on what's going on, plus how can I generate the call as my application requires, without needing to resort to manual matlab code, like coder.ceval for example?
I attached a sample model where I implement what I just described. Thanks!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!