Filter löschen
Filter löschen

Passing a parameter to another compiled App

1 Ansicht (letzte 30 Tage)
Jan S
Jan S am 22 Dez. 2021
Beantwortet: Walter Roberson am 22 Dez. 2021
Hello everybody,
i have made an App in App Designer (2020a) and have compiled it already, everything works fine.
Now i want to open a specific file type always with my app. I found out that only a char string with the file path is transmitted, all well. This is no problem to implement.
But now if one will open a second file i dont want to open a new window of the app, i want to send the path of the second file to the first opened app window. And here i have no idea how to handle this useful. Since i had to use 2020a, i cant use the Single window option.
Thanks for your help.

Antworten (1)

Walter Roberson
Walter Roberson am 22 Dez. 2021
One of the sides could use tcpclient(), but the other side would have to either use tcpserver() from instrument control toolbox, or use tcpudpip() from the File Exchange, or use java to handle the tcp.
Or you could potentially use java calls (or OpenMPI) to share memory.
Or you could use memmapfile() to, in theory, share a file even on Windows.
If you restrict to Windows, you could potentially use .NET calls to send messages.

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by