tcpclient objects are not supported by icdevice. Hardware interface object must be a serial, tcpip, visa, or gpib object.

35 次查看(过去 30 天)
I was using tcpip interface object with my matlab interface intrument driver. But, it was giving warining that tcpip will be removed in future release. So, to make my code work even in future I changed tcpip with tcpclient as suggested. But, it is not supported by icdevice. So how can I use my interface intrument driver with functions that are not going to be removed in near future. Also, can anyone suggest when this tcpip function will be removed fro Matlab? Please find below code snippet which is giving error. "tcpclient objects are not supported by icdevice. Hardware interface object must be a serial, tcpip, visa, or gpib object."
% Create a new TCP/IP client object.
interfaceObj = tcpclient(remoteHost, remotePort);
% Create a device object.
deviceObj = icdevice('my_driver.mdd', interfaceObj);

回答(1 个)

Hassaan
Hassaan 2024-7-18,11:44
编辑:Hassaan 2024-7-18,11:44
Continue Using tcpip: Since it hasn't been removed yet, you can continue to use tcpip until MathWorks provides a clear update or until icdevice supports tcpclient.
Contact MathWorks Support: Reach out to MathWorks for advice or to advocate for icdevice support for tcpclient.
Use Alternative Interfaces: Consider using other supported interfaces like VISA for TCP/IP communication.

类别

Help CenterFile Exchange 中查找有关 Instrument Connection and Communication 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by