- 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
- 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
- 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
Could not open VISA object via eternet
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Louis Tomczyk
le 4 Oct 2023
Réponse apportée : Adeline
le 10 Oct 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::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
0 commentaires
Réponse acceptée
Adeline
le 10 Oct 2023
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:
I hope this helps!
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Instrument Connection and Communication dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!