Open scope and paste this script into the
command window.
Then press <Ctrl + R> to plot a square wave
Select the Calculator menu "Functions//Filters/PWL
1 pct to check it out.
numpoints = 500
time = (vector(numpoints)/(numpoints-1)*1m)
newplot pulseplot time
setplot pulseplot
setunits time sec
y = 2*pulse(500u) - 1
plot y
|