How to plot a scaled signal from oscilloscope

26 visualizaciones (últimos 30 días)
miki90
miki90 el 31 de Mzo. de 2017
Comentada: Allen Yang el 22 de Nov. de 2018
Hello everyone. I am using the Tektronix oscilloscope and I want to plot the signals in real time on my computer. Tektronix has provided instructions for communicating with the scope in its programming manual, and there is also a code for acquiring data, but the data is in form of a vector, so I only get the right values of volts per division, but not the time. It shows the number of samples on the x scale, and I want it to be like on a scope - time/div. I-ve tried to change everything in the formula for data acquisition, but the only thing it changes is volt/div, because it somehow doesn't depend on time. Anybody have some idea how to get the data scaled with time? The code I used for this can be found here: TekScopeDataAcquisition
  1 comentario
Allen Yang
Allen Yang el 22 de Nov. de 2018
Hi, did you successfully plot the waveforms in real-time on the computer? I tried to read waveforms from tek oscilloscope. But the refresh rate was low and I can't display the wavefroms in real-time.

Iniciar sesión para comentar.

Respuestas (1)

Andrei
Andrei el 17 de Ag. de 2018
The easiest way to read a waveform from your Tektronix scope would be by using Quick-Control oscilloscope. With this approach, you would need to generate the waveform time values by using the AcquisitionTime and WaveformLength oscilloscope properties. For example, if o is your oscilloscope object:
y1 = readWaveform(o);
t = linspace(0, o.AcquisitionTime, o.WaveformLength);
figure
plot(t, y1)
xlabel('Time (s)')
ylabel('Voltage (V)')
You might also find the following example app useful:

Community Treasure Hunt

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

Start Hunting!

Translated by