find_replace_system in Simunlink API

バージョン 2.0.1 (40.7 KB) 作成者: Sysenso Systems
Searches any block/annotation/signal property in a model and replaces with the new value.
ダウンロード: 428
更新 2022/3/25
"find_replace_system" will search and replace almost anyblock/annotation/signal property in Simulink.
Ref: Simulink API documentation "find_system".
Please refer the syntax and examples below.
Syntax:
>>find_replace_system('<model name/subsystem name>',<find_system property value-pairs if required>,'<Find Property Name>','<Find Property Value>','<Replace Value>','prompt')
>>find_replace_system('<model name/subsystem name>','<Find Property Name>','<Find Property Value>','<Replace Value>','prompt')
>>find_replace_system('<model name/subsystem name>','<Find Property Name>','<Find Property Value>','<Replace Value>')
- <find_system property value-pairs if required> Refer help
find_system of all different types of properties can be used to
narrow down the search, 'LookUnderMasks', 'RegExp', 'SearchDepth',
'FollowLinks', etc..
- 'prompt' is an optional keyword.
Example:
>>find_replace_system('sldemo_autotrans','LookUnderMasks','all','FindAll','on','type','block','Name','Transmission','AutoTransmission','prompt')
>>find_replace_system('sldemo_autotrans','ForegroundColor','Red','Blue')
>>find_replace_system('sldemo_clutch/Friction Mode Logic','Position',get_param('sldemo_clutch/Friction Mode Logic','Position'),[250 292 400 433],'prompt')
>>find_replace_system(gcs,'SampleTime','-1','0.1','prompt')
>>find_replace_system(gcs,'Amplitude','3','1.5')
>>find_replace_system(gcs,'ZeroCross','on','off','prompt')
Developed by: Sysenso Systems, www.sysenso.com
Please share your comments and suggestions.
If you are interested to have GUI based Find and Replace Tool which has more features, please write to us contactus@sysenso.com

引用

Sysenso Systems (2024). find_replace_system in Simunlink API (https://github.com/SysensoSystems/FindReplaceSystem), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
2.0.1

Connected to the github repository.

2.0.0.0

Added support to have additional options similar to find_system command to narrow down the search.
Added support to have additional options similar to find_system command to narrow down the search.
Added support to have additional options similar to find_system command to narrow down the search.
Added support to have additional options similar to find_system command to narrow down the search.

1.0.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。