How do I suppress a window opened by a Matlab function?

조회 수: 9 (최근 30일)
Frank Wuechner
Frank Wuechner 2017년 12월 6일
댓글: Frank Wuechner 2017년 12월 15일
Hi! I am running the mdf function of vehicle network toolbox to batch-process mdf files. Each time a file is opened, several load screens are popping up to show the load progress. This takes only some miliseconds, but the OS (win7) focuses on each load screen - in effect, the PC is blocked as long as files are read (several times a second for up to 20 minutes) because the focus is permanently reset to the popups. I did not find an option in the mdf function itself to switch to some kind of silent mode.
  댓글 수: 2
Pista Lele
Pista Lele 2017년 12월 8일
편집: Pista Lele 2017년 12월 8일
I'm doing exactly the same thing and I have the same issue. Couldn't solve it so far.
Frank Wuechner
Frank Wuechner 2017년 12월 11일
Too bad (-_-)

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 11일
Try adding a function on your path:
function wb = waitbar(varargin)
if nargout > 0
wb = matlab.graphics.GraphicsPlaceholder;
end
provided you are using R2014b or later. If you are using an earlier version, then the function needs to be made more complex, as waitbar() needs to return a graphics handle that can later be delete()'d
  댓글 수: 7
Jan
Jan 2017년 12월 13일
@Frank: If the windows are opened from P-functions, you cannot suppress their creation directly. It might work, if you shadow the corresponding built-in function: create figure.m inside the folder of the P-file and let it create an invisible figure:
function H = figure(varargin)
H = figure(varargin{:}, 'Visible', 'off');
end
But this is near to hacking and can have evil side-effects.
Frank Wuechner
Frank Wuechner 2017년 12월 15일
@Jan: Thank you, but that did have no effect as well. I'll contact the technical support for the vehicle network toolbox and ask them if there is any chance to deactivate this.
Thanks again to everybody for their help, I learned a lot!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by