Azzera filtri
Azzera filtri

Run a compiled app from another app

5 visualizzazioni (ultimi 30 giorni)
Garrett Cassidy
Garrett Cassidy il 20 Mar 2021
Modificato: Mario Malic il 23 Mar 2021
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 Commenti
Garrett Cassidy
Garrett Cassidy il 23 Mar 2021
I just ended up compiling the primary app and including the secondary as a 'File required for yout application'. I also compiled just the secondary app as it has some functionality that works as a stand alone. This all works fine the only draw back is if I make a change to the secondary app, it will not be reflected in any primary apps that use it until I re compiled them.
THanks for the help
Mario Malic
Mario Malic il 23 Mar 2021
Modificato: Mario Malic il 23 Mar 2021
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su C Shared Library Integration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by