필터 지우기
필터 지우기

Are there any changes in the way compiled apps interact with the operating system? Different app behavior when compiled!

조회 수: 3 (최근 30일)
I have an app that creates a macro (.cmd file) to run a second program (adams car) in bacth. Once this macro is created, I send a command to the operating system using the system function to execute the macro.
The problem is that I am getting different outputs (from the second program) when I compile the app. When I run my app directly from app designer, everything goes well, but when I compile it (to distribute as a standalone desktop app) I do not get complete results.
I verified that the macro created by the compiled app is exactly the same as the one created when I run the app from app designer; also the command sent to the operating system is exactly the same.
I tried running manually the macro created by the compiled app (by typing the command in the cmd shell) and it worked well, so the problem seems to be associated with the compiled app blocking something from the second program, which is strange since the second program is completely independent from matlab, it uses only the information present on the macro and its internal routines.
Another detail is that it works when compiled with R2020a but not with R2022a.
So, are there any clues as to why it does not work properly when compiled? And why it happens in R2022a but works in R2020a?

답변 (1개)

Yatharth
Yatharth 2023년 10월 18일
Hi Wictor,
I understand that you are facing an issue with the compiled desktop app in R2022a however, the problem did not exist in the R2020a version.
Here is a similar query that might help your case.
If not, this might be a bug and you can report it to technical staff to resolve it.
I hope this helps.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by