필터 지우기
필터 지우기

Matlab dialog boxes control

조회 수: 2 (최근 30일)
yuri tupizin
yuri tupizin 2015년 4월 18일
댓글: yuri tupizin 2015년 4월 19일
Hi , can I control which dialog boxes matlab allowed to popup some where in the settings ? For example I have an exe file created from matlab project which pops up runtime errors everytime the input is incorrect and I would like to block that ?
Any ideas would be great , thanks. Yuri

답변 (3개)

William
William 2015년 4월 18일
can't you write a code inside the exe file that cancels the rest of the code if an incorrect input is recorded?
Then you won't get error popups
  댓글 수: 3
William
William 2015년 4월 18일
are these Matlab or Windows popups?
yuri tupizin
yuri tupizin 2015년 4월 18일
the popups are titled "Error" and they look like matlab popups

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


Image Analyst
Image Analyst 2015년 4월 18일
If the popups are coming from the compiled executable and you don't have access to the source code, it would be pretty tricky to suppress them. I suggest you talk to the author about the reason why and when the popups occur and see if there is a better way that will make you happy.
  댓글 수: 1
yuri tupizin
yuri tupizin 2015년 4월 18일
Its impossible, this executables are uploaded via the internet to the server and than everybody gets to run them ... I do not mind them crashing , I just need to get rid of those popups because they causing the server to hang , waiting for your replay Thanks

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


Image Analyst
Image Analyst 2015년 4월 18일
You'd have to find the running process and then send an enter key to it. See attached demo that finds running processes. Message boxes in MATLAB seem to come up as a separate process. You can use java robot to click the OK button or send an Enter key.
  댓글 수: 3
Image Analyst
Image Analyst 2015년 4월 19일
That doesn't matter. What I said/meant was that you're going to have to have a separate program running that is always watching the process list and springs into action when it sees a new process created by MATLAB and then clicks the default button. It's not simple, basic programming - that's why I said it could be tricky - and it may be too advanced for you right now.
yuri tupizin
yuri tupizin 2015년 4월 19일
The problem is that they are not created as a new matlab process. as i said the process starts as a XXX.exe and when the popup jumps it still called XXX.exe so there is not a way to tell if its executing normally or not

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

카테고리

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