Passing a parameter to another compiled App
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2021년 12월 22일
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!