tcpclient objects are not supported by icdevice. Hardware interface object must be a serial, tcpip, visa, or gpib object.
7 ビュー (過去 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);
0 件のコメント
回答 (1 件)
Hassaan
2024 年 7 月 18 日
編集済み: Hassaan
2024 年 7 月 18 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!