Could not open VISA object via eternet

조회 수: 4 (최근 30일)
Louis Tomczyk
Louis Tomczyk 2023년 10월 4일
답변: Adeline 2023년 10월 10일
Dear all,
First I am totally a dummy in interfaces and communication between devices.
I have an oscilloscope Tektronix DP077002SX connected via Ethernet @Lan1 port at the back of the machine.
The call to VISA function seem to work.
>> tmp=visa('ni','TCPIP0::')
VISA-TCPIP Object Using NI Adaptor : VISA-TCPIP-0-
Communication Address
Communication State
Status: closed
RecordStatus: off
Read/Write State
TransferStatus: idle
BytesAvailable: 0
ValuesReceived: 0
ValuesSent: 0
but it crashes when I try to open it with FOPEN:
Error using icinterface/fopen (line 83)
Unsuccessful open: Could not open VISA object. Use INSTRHWINFO for a list of available configurations.
So I did typed the suggested command and get:
>> instrhwinfo
ans =
HardwareInfo with properties:
MATLABVersion: '9.5 (R2018b)'
SupportedInterfaces: {'gpib' 'serial' 'tcpip' 'udp' 'visa' 'Bluetooth' 'i2c' 'spi' 'modbus'}
SupportedDrivers: {'matlab' 'ivi' 'vxipnp'}
ToolboxName: 'Instrument Control Toolbox'
ToolboxVersion: '3.14 (R2018b)'
But now I don't know what to do at all.
Any ideas of how debugging?
Thanks in advance,
MATLAB Version: (R2018b)
MATLAB License Number: 40713398
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19045)
Java Version: Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

채택된 답변

Adeline 2023년 10월 10일
I understand you are trying to connect a Tektronix DP077002SX oscilloscope in MATLAB via Ethernet.
The error using “fopen” can be a result of missing object configuration or mismatched driver assignment. Please try the following solutions to resolve the issue:
  1. Ensure that only one interface object is given to the instrument and configure all the required properties for the specific object. Refer to the following link for more information:
  2. Check if Windows has assigned the correct driver to the instrument. If an incorrect driver is assigned, try reassociating the ethernet adapter with the required driver. The National Instruments website provides a procedure for reassociating a USB device with the required NI-VISA driver. Refer to the following link for the procedure and adapt it for an Ethernet connection:
  3. Try using the “tmtool” to connect MATLAB with the oscilloscope. Refer to the following link for a demonstration of connecting Tektronix instruments to MATLAB:
I hope this helps!

추가 답변 (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