How to pass address of a variable to an S- function block containing C code?
1 次查看(过去 30 天)
显示 更早的评论
When I declare a variable as "importedexternpointer" and use that variable in a constant block and connect it to the s-function, the code generated passes the contents of the pointer variable such as( *variable). Is there a way to pass just the contents of the variable such as(variable) or better if it could send the address of the variable, such as (&variable)? Or should I be using a block other than the constant block?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block and Blockset Authoring 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!