Effacer les filtres
Effacer les filtres

Reading tektronix oscilloscope waveforms directly in matlab (DPO4104B)

16 vues (au cours des 30 derniers jours)
Greg
Greg le 11 Déc 2023
Réponse apportée : Greg le 13 Déc 2023
I'm using a tektronix DPO4104B oscilloscope, currently saving waveforms as .csv from the OpenChoice app. However, I'd like to make my life easier and read/plot data directly into matlab, in a figure file.
I've tried following several documents to get the waveforms, such as this (https://uk.mathworks.com/help/instrument/read-a-waveform-using-a-tektronix-scope.html#), but with no luck. I'm using tekvisa v4.2 as the VISA resource, and matlab 2023b with the instrument control toolbox installed.
First problem is, if I try getting the address of the scope connection (done via USB cable), it returns an empty string.
resources(myscope)
ans =
'
'
This is worked around by getting the address from the VISA program, in my case it's in this format 'USB::0x0699::0x0405::C022561::INSTR'
But even when I set the resource field using this address, I still an unable to connect.
connect(myScope)
Failed to connect to the oscilloscope. Provide a
driver name and try again.
Getting the tektronix matlab driver in (DPO4104.mdd), and adding it to the oscilloscope properties, still yields no connection to the scope.
connect(myScope)
Failed to connect to the oscilloscope. Check
instrument connection.
Seems like I'm doing something majorly wrong, can someone help me?

Réponse acceptée

Greg
Greg le 13 Déc 2023
This has now been fixed. In my case, what worked was removing the TekVISA software and switching over to NI-VISA. It seems to work fine now.

Plus de réponses (0)

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by