How can I convert code with the deleted function tcpip in something actual similiar?
1 view (last 30 days)
Show older comments
Hello everyone.
I am trying to convert older code from an older version to one which is working with the
current Matlab version. In the code also the following function is used:
x = tcpip(ip_adress,port_number,'Timeout',0.01, 'InputBufferSize', 512,'TimerPeriod',0.1);
I already recognized that the function tcpip has been removed by matlab.
In their instructions they recommend to use tcpclient instead.
In tcpclient I can also find arguments for the ip, port and Timeout.
But I do not find the possibility to verify the InputBufferSize and the TimerPeriod.
Do I need another function or is there another way to use tcpclient for this?
Thank you for your support.
Best regards,
Tim
2 Comments
Adrián László Szemenyei
on 26 Feb 2024
In https://www.mathworks.com/help/instrument/transition-your-code-to-tcpclient-interface.html it states that "The BytesToOutput, InputBufferSize, and OutputBufferSize properties will be removed. Buffer sizes are automatically managed and sized as needed." and "The TimerFcn and TimerPeriod properties will be removed. Use timer instead."
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!