UserData goes empty when I use restore link
1 回表示 (過去 30 日間)
古いコメントを表示
Hello all,
I've created a toolbox and saved all the data in UserData. I've made the toolbox a library and after I copy the library into a normal model I disable the link.
The UserData data is still present, but when I restore the link to the library the UserData = [];
Why is this happening ? I need to restore the link in the models when I make small updates to the library.
Best Regards, Adrian
2 件のコメント
Jan
2013 年 2 月 5 日
You are talking about Simulink, correctly? UserData are usually volatile, such that a reloading of the object must initialize it before using.
採用された回答
Jan
2013 年 2 月 5 日
編集済み: Jan
2013 年 2 月 5 日
Setting UserDataPersitent does:
The following command saves the user data associated with a block in the model file of the model containing the block.
Does this mean, that you have to save the block to store the user data also? If so, did you save the block after setting the UserData?
3 件のコメント
Jan
2013 年 2 月 7 日
I do not understand the 2nd sentence. Splitting this sentence into smaller parts might support my understanding as a non-native speaker.
However, I'm convinced that the bahaviour of the UserData is explained exactly and exhaustively in the documentation of Simulink.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!