Filter löschen
Filter löschen

Could not open VISA object via eternet

21 Ansichten (letzte 30 Tage)
Louis Tomczyk
Louis Tomczyk am 4 Okt. 2023
Beantwortet: Adeline am 10 Okt. 2023
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

Akzeptierte Antwort

Adeline am 10 Okt. 2023
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!

Weitere Antworten (0)


Mehr zu Instrument Connection and Communication finden Sie in Help Center und File Exchange





Community Treasure Hunt

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

Start Hunting!

Translated by