Could not open visa object

22 ビュー (過去 30 日間)
CC
CC 2018 年 8 月 3 日
コメント済み: CC 2018 年 8 月 3 日
I am attempting to connect a TDS7124C Tektronix oscilloscope in MATLAB by creating an icdevice. The scope is connected to the laptop via LAN cables and TEKVISA LAN Server control.
The part of the code that is having issues is:
visa_address_tds = 'TCPIP::169.254.247.136::INSTR';
buffer = 1000*1024;
tds = visa('tek', visa_address_tds,'InputBufferSize', buffer,...
'OutputBufferSize', buffer);
deviceTDS = icdevice('tektronix_tds6124C.mdd', tds);
clear buffer
disconnect(deviceTDS);
connect(deviceTDS)
When run, the code generates the error: " Error using icdevice/connect (line 112) Could not open VISA object. Use INSTRHWINFO for a list of available configurations. If this error is not an instrument error, use MIDEDIT to inspect the driver."
The visa address is correct and the device shows up in the VISA resource manager on the laptop, so I am unsure why I am receiving this error.
Any help regarding this issue would be greatly appreciated.
  1 件のコメント
CC
CC 2018 年 8 月 3 日
Update: I entered the following statement in the command window while trying to find a solution and it produced the error: Error using visa (line 231) Invalid RSRCNAME specified.
instrhwinfo(visa('tek','TCPIP::196.254.247.136::INSTR'))
Again, I have verified the IP address for the instrument, so I don't know why this error is being produced.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeInstrument Control Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by