fsaxen / ParforProgMon

Progress monitor for matlab parfor (parallel) loops with estimation of the remaining time
BSD 3-Clause "New" or "Revised" License
27 stars 8 forks source link

Warning in Matlab 2022a: udp will be removed in a future release. Use udpport instead. #12

Open PNelsonFord opened 2 years ago

PNelsonFord commented 2 years ago

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

fsaxen commented 2 years ago

Unfortunately, I do not have access to Matlab anymore. But you are very welcome to contribute.

xwghua commented 1 year ago

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.

FWDekker commented 6 months ago

Looks like the udp method has now finally been removed from MATLAB 2024.1, making this add-on incompatible :-(

FWDekker commented 5 months ago

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.