フィルターのクリア

Temporarily Change Signal Line Names in Simulink

21 ビュー (過去 30 日間)
Dhruv
Dhruv 2024 年 6 月 28 日 13:48
コメント済み: Dhruv 2024 年 6 月 29 日 1:28
I have a simulink model, the signal line names are currently hand typed. However, all the signal names are also in a seperate excel spreadsheet. The signal names in the spreadhseet change every now and then, and I want the model to automatically reflect that. I want to replace the signal names with a marker, lets say @excelsheetname:linenumber. I know I can grab all the signal names in matlab, then I can import the spreadsheet and replace the marker with the proper name, but how do I maintain the marker, so the next time the model is opened, it can grab the correct signal names again whether they have changed or not?

回答 (1 件)

Paul
Paul 2024 年 6 月 29 日 0:20
Hi Dhruv,
At the risk of asking an obvious question, does the workflow require that the model be saved after modifying the generic signal names with the specific signal names from the spreadsheet?
Also, if you don't mind my asking, what causes the signal names in the spreadsheet to change and why does the model have to reflect those signal names. I'm only asking because there may be alternatives to get the desired results.
  3 件のコメント
Paul
Paul 2024 年 6 月 29 日 1:18
Based on that description, it seems like we start with a model that has the generic names, load the model, update the generic signal names with the specific signal names, and then save the model with the specific signal names under a different name. Is that a feasible approach?
Dhruv
Dhruv 2024 年 6 月 29 日 1:28
Yeah that sounds reasonable. The actual names are only needed when I get to the compiler, so this works. Thanks for suggesting this.

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by