Clear Filters
Clear Filters

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

35 views (last 30 days)
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);

Answers (1)

Hassaan
Hassaan on 18 Jul 2024 at 11:44
Edited: Hassaan on 18 Jul 2024 at 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.

Categories

Find more on Instrument Connection and Communication in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!