Unable to use UDP when using a standalone executable
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Josiah Renfree
am 12 Okt. 2022
Kommentiert: Eric Delgado
am 4 Nov. 2022
I have a Matlab App which communicates with external software via UDP packets. The program works fine when I run the app through Matlab. However, if I convert the app to a standalone executable and run it via MCR, I get an error regarding UDP comms. I suspected it was due to a firewall, but I completely disabled the firewall on both machines and still get the error.
Any suggestions?
0 Kommentare
Akzeptierte Antwort
Eric Delgado
am 12 Okt. 2022
Firewall. No doubt about it! :)
Just add your app (not Matlab, but your deployed app) in "white list" of the firewall. See image below.
2 Kommentare
Eric Delgado
am 4 Nov. 2022
Hummmm... don't forget to create an property that hold the path of your app... app.RootFolder, for example.
if isdeployed
[~, result] = system('path');
app.RootFolder = char(regexpi(result, 'Path=(.*?);', 'tokens', 'once'));
end
And install your app in a location that you have write pivilegies.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Manage Products finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!