Passing a parameter to another compiled App
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 22 Dec 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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!