"Warning: udp will be removed in a future release. Use udpport instead."
13 visualizaciones (últimos 30 días)
Shlomo Geva el 4 de Abr. de 2023
I do not call udp directly.
This warning only appeared after upgrading to Matlab version R2022b from an earlier version.
I suspect it is related to code running inside parfor loop. When I run it in a for loop there is no warning.
The warning is not helpful in identifying the offending code.
Sachin el 12 de Abr. de 2023
I understand that you are getting a warning while using UDP.
I suggest you to use ‘udpport’ instead of ‘udp’. The warning that you are getting is related to the use of ‘udp’ function. In the later release of MATLAB ‘udp’ function will not support.
Since you mentioned that the warning only appeared after upgrading to MATLAB R2022b and you suspect that it is related to code running inside the ‘parfor’ loop, the issue may be related to how the ‘udp’ object is used within ‘parfor’ loop. The ‘parfor’ loop in MATLAB has some restrictions compared to the regular ‘for’ loop.
I recommend you to use ‘fclose’ to close the ‘udp’ object after using it. Also, make sure that you are not accessing the same ‘udp’ object from multiple iterations of the ‘parfor’ loop in parallel, it can cause conflicts and result in a warning.
For more information on ‘udpport’, please refer to the following documentation: