Passing arguments between 2 standalone apps

1 visualización (últimos 30 días)
Iacopo
Iacopo el 1 de Sept. de 2022
Comentada: Iacopo el 2 de Sept. de 2022
Hi all,
How can I pass arguments between 2 compiled apps?
I tried to put in the app 2 StartUp func. arguments a variable A as test but I don't don't how to pass the same variable from app 1.
Moreover, app 2 starts anyway even though it's given a parameter A in the StartUp func. which is not defined anywhere.
Also, is it possible to compile app 1 and app 2 together within the same installer file?
Thanks for your help!

Respuestas (1)

Kevin Holly
Kevin Holly el 1 de Sept. de 2022
Please see the links below:
For an example, see one of my multiwindowed apps on the File Exchange: Rodent Tracker (Note, you will have to comment out lines 616 and 617, which use the addpath function before compiling).
It is possible to compile the two apps together within the same installer. I did it for the above app.
Let me know if you would like me to make a simple example app.
  1 comentario
Iacopo
Iacopo el 2 de Sept. de 2022
Hi Kevin,
Thanks for your response!
I am already able to create multi windows apps and sharing arguments between them.
I don't know if this is possible to do but what I mean is about 2 compiled .exe. What if for example app 1 is an app written in C and I want to open an app 2 in MATLAB from app 1 passing an argument (e.g. a string, in detail a folder path) between them?
Thank you

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by