Run a compiled app from another app
이전 댓글 표시
I have a strange situation where I would like two compiled app talk to eachother (on a non matlab computer). I have it working nice where the primary app has a button that when pressed opens the secondary app with:
app.AppHandle = FeedBackControl;
This opens the (not yet compiled) secondary app called 'FeedBackControl' located in the same directory as the primary app. The AppHandle lets the primary app access varables in the secondary app. This is all working great on the computer im useing to develope the code.
Now the problem. When I compile the secondary app it is nolonger a 'FeedBackControl.mlapp' file but a exe. What command from MatLab will open a .exe and return a handle to the app?
I can start the app with the command:
system('C:\...\FeedBackControl.exe&')
but this dosn't return the handle to the app leaving me no way to hand information from the primary app to the secondary.
THANKS
댓글 수: 2
Garrett Cassidy
2021년 3월 23일
Mario Malic
2021년 3월 23일
편집: Mario Malic
2021년 3월 23일
I'll remove my answer, however I also thought about another way to transfer the data between your apps and that is through TCP/IP. I have never tried this though, but it should be possible. It's questionable whether the data gathering will be stopped while the data is being sent from the primary app.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!