how to change uiLamp color in parfeval function?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
parfor
or
parfeval
functions do no accept structs as input parameters.
GUIs designed using App Designer memorises properties in structs like
app.myLamp.Color
I have a process running inside a
parfeval
function that should change e.g. color of the lamp.
How to do this?
Thanks
0 件のコメント
回答 (1 件)
Alvaro
2022 年 12 月 2 日
編集済み: Alvaro
2022 年 12 月 2 日
Using parfeval or parfor is allowed in the App Designer. However, a quick test I just ran does not allow for modifying app object properties such as lamp color in parallel which might be expected (note that app.myLamp.Color is referencing an object property, not a struct).
You can, however, store the value of a property and then pass that to the workers instead of trying to access it from within the workers.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Background Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!