필터 지우기
필터 지우기

Could not open VISA object via eternet

조회 수: 11 (최근 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::192.168.0.66::INSTR')
VISA-TCPIP Object Using NI Adaptor : VISA-TCPIP-0-192.168.0.66-inst0
Communication Address
RemoteHost: 192.168.0.66
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,
best
p.s.
MATLAB Version: 9.5.0.944444 (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
Adeline 2023년 10월 10일
Hi,
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: https://www.mathworks.com/help/instrument/fopen.html#f10-363666
  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: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019La2SAE&l=en-IN
  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: https://www.mathworks.com/videos/connecting-tektronix-instruments-to-matlab-68778.html
I hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by