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 CenterFile Exchange 中查找有关 Instrument 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