MATLAB Answers

Script to create instance of bus signal and write it to the data dictionary

4 ビュー (過去 30 日間)
Bo Cao
Bo Cao 2019 年 12 月 20 日
回答済み: Kavya Vuriti 2020 年 3 月 31 日
I would like write a script that does the following:
  1. Create an instance of a bus signal included in a data dictionary
  2. Set the values of the members of the bus signal to 0.
  3. Write this instance to the data dictionary.
Can it be done? If so, how to do it?
Thanks!

  0 件のコメント

サインインしてコメントする。

回答 (1 件)

Kavya Vuriti
Kavya Vuriti 2020 年 3 月 31 日
Hi,
To create bus objects or bus elements programmatically, you could refer following documentation:https://www.mathworks.com/help/simulink/ug/create-bus-objects-programmatically.html#bvf4tak

  0 件のコメント

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by