필터 지우기
필터 지우기

problem with making exe file from .m file with deploytool

조회 수: 1 (최근 30일)
SRii
SRii 2022년 12월 10일
댓글: SRii 2022년 12월 13일
I have written a code that reads data from serial port. When I run the code through MATLAB there is no problem and it works fine. I want an exe version of this file to run on another computer that doesn't have Matlab installed. So I build the exe file with "deploytool". When I run the exe file, my serial port does not open! It opens and closes immediately because the exe file is executed only once. I tried to force the code to stay open by using an infinite loop or using the input command. This method was effective, but it involves a lot of CPU and RAM. Is there a way to keep the generated exe file open without involving them?

채택된 답변

Walter Roberson
Walter Roberson 2022년 12월 10일
See waitfor and uiwait and uiresume

추가 답변 (0개)

카테고리

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