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
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.
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:
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/332949-how-to-plot-a-scaled-signal-from-oscilloscope#comment_641005
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/332949-how-to-plot-a-scaled-signal-from-oscilloscope#comment_641005
Sign in to comment.