System object: dsp.TimeScope
Reset internal states of time scope object
the internal states of the
scope to their initial values.
You should call the
reset method after calling
step method when you want to clear the Time Scope
figure displays, prior to releasing system resources. This action
enables you to start a simulation from the beginning. When you call
reset method, the displays will become blank
again. In this sense, its functionality is similar to that of the MATLAB®
clf function. Do not call the
after calling the
View a sine wave on the time scope. When you finish the simulation, pause for 5 seconds and then reset the screen. Then, view a different sine wave on the same time scope.
sinSignal1 = dsp.SineWave('Frequency', 100, 'SampleRate', 1000, 'SamplesPerFrame', 10); sinSignal2 = dsp.SineWave('Frequency', 50, 'SampleRate', 1000, 'SamplesPerFrame', 10); scope = dsp.TimeScope('SampleRate', sinSignal1.SampleRate,'TimeSpan', 0.1); for ii = 1:10 x = step(sinSignal1); step(singSignal2, x); end % Pause and then reset internal states pause(5); reset(scope); for ii = 1:10 x = step(sinSignal1); step(sinSignal2, x); end release(scope);