Open PNelsonFord opened 2 years ago
Unfortunately, I do not have access to Matlab anymore. But you are very welcome to contribute.
I was trying to replace the "udp" function with "udpport" function, but I found that after switching o.connection = udp(o.ServerName, 'DatagramReceivedFcn', {@receiver, o}, 'DatagramTerminateMode', 'on', 'EnablePortSharing', 'on');
to configureCallback(o.connection,"datagram",1,@(scr,evt)receiver(o))
, the loop was still going on, but the progressbar was not updated.
It seems that o.timer = timer('BusyMode','drop','ExecutionMode','fixedSpacing','StartDelay',p.Results.progressBarUpdatePeriod*2,'Period',p.Results.progressBarUpdatePeriod,'TimerFcn',{@draw_progress_bar, o});
only took the values from o.connection
at the very beginning and didn't work any more during the loop period.
Totally understand the original author doesn't have MATLAB access any more, but still would love to know if there's any possible suggestion from any MATLAB users/experts.
Looks like the udp method has now finally been removed from MATLAB 2024.1, making this add-on incompatible :-(
I found this progress bar add-on by HyunGwang Cho. It's compatible all the way from MATLAB 2017a until the latest version (currently MATLAB 2024a). It works quite nicely, though it misses some of the features of ParforProgMon.
Starting in Matlab 2022a, I am getting the following warning:
Warning: udp will be removed in a future release. Use udpport instead.
I found this Mathworks page with information about the transition: https://www.mathworks.com/help/releases/R2022a/instrument/transition-your-code-to-udpport-interface.html