
Simulinkでuint8の配列をバスオブジェクトに変換するブロックの記述方法
9 views (last 30 days)
Show older comments
matlab function blockを使うことが考えられますが、 その中でmemcpyに相当することを行うにはどのようにすればよろしいでしょうか。
もしくは既存のsimulink ブロックを使って行う方法があれば教えてください。
0 Comments
Answers (1)
Yoko
on 7 Sep 2017
配列からバスオブジェクトへ変換するだけであれば、Bus Creator ブロックで変換できます。 memcpy を行うということですが、uint8の配列をコピーして、2つの配列をバスオブジェクトとして定義したいということでしょうか。 上記を基本ブロックで実現するのであれば、例えば下記の図のような方法が考えられます。

モデルも添付しますので、動作など確認してみてください。
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!