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!