How do you have text boxes appear in parallel processing?

조회 수: 5 (최근 30일)
Nathan Orloff
Nathan Orloff 2012년 6월 27일
답변: Nathan Orloff 2014년 2월 20일
I cant get multiple dialog boxes to run in parallel processing. I have a while loop that runs while the handles of dialog box is running. Once the handles are deleted, the while loop stops. I tried to do this in the parallel processing toolbox but I got the following warning message and the dialog box was suppressed.
Starting matlabpool using the 'local' configuration ... connected to 2 labs. Lab 1: Warning: This functionality is no longer supported under the -nodisplay and -noFigureWindows startup options. For more information, see "Changes to -nodisplay and -noFigureWindows Startup Options" in the MATLAB Release Notes. To view the release note in your system browser, run web('http://www.mathworks.com/access/helpdesk/help/techdoc/rn/br5ktrh-1.html#br5ktrh-3', '-browser') > In uitools\private\warnfiguredialog at 19 In dialog at 37 In msgbox at 216 In warndlg at 46 In gameoverdlg at 3 In countparalleltest at 2 In remoteBlockExecution at 47
Does anyone have a work around?

채택된 답변

Nathan Orloff
Nathan Orloff 2014년 2월 20일
You can't do this.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 6월 27일
This is not something I have investigated myself, but information I have seen indicates that the workers are run without access to graphics.
I do not know what kind of communications are possible between a GUI and a worker; I would think there would have to be some way.
  댓글 수: 2
Nathan Orloff
Nathan Orloff 2012년 6월 28일
I tried passing figure handles to a worker and that was unsuccessful too.
Walter Roberson
Walter Roberson 2012년 6월 28일
I considered passing handles for a moment but realized that would probably not work. A handle graphic handle is just a double precision number as far as passing data around is concerned, so it would just be a number on the worker. When trying to make use of that number, the worker would look in the handle graphics store of its own process (each worker is a different process, I believe), and it wouldn't find it.
There is a chance that passing handle() of the numeric handle might get a graphics object into the worker, but I would not expect that the graphics objects in the distinct processes to be synchronized together.
If you were using smpd and could get the status update into one worker, you could use a lab broadcast to get it to the other workers. I do not, however, know how to get the information into that first process.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by