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

8 visualizzazioni (ultimi 30 giorni)
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);

Risposte (1)

Hassaan
Hassaan il 18 Lug 2024
Modificato: Hassaan il 18 Lug 2024
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.

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by