How to plot a scaled signal from oscilloscope

26 ビュー (過去 30 日間)
miki90
miki90 2017 年 3 月 31 日
コメント済み: Allen Yang 2018 年 11 月 22 日
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 件のコメント
Allen Yang
Allen Yang 2018 年 11 月 22 日
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.

サインインしてコメントする。

回答 (1 件)

Andrei
Andrei 2018 年 8 月 17 日
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