How to plot a scaled signal from oscilloscope
조회 수: 8 (최근 30일)
이전 댓글 표시
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
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
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:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!