Hardware Reference
In-Depth Information
Press <SPACE> to abort, <X> to freeze, <+> or <-> to change timebase setting
X = 33 ms/div. (time) and Y = 50 mV/div. (strain)
Time (ms/div.)
Figure 12.9 Typical (strain plotted against time) display produced by the
oscilloscope program
next x%
sweeptime! = mtimer ' Get the sweep time
' Check to see if the user wishes to alter the scan rate
r$ = inkey$
if r$ = "+" or r$ = "=" then dly% = dly% - 10
if r$ = "-" or r$ = "_" then dly% = dly% + 10
if dly% < 10 then dly% = 10
if dly% > 100 then dly% = 100
' Check to see whether the user wishes to freeze the
screen while r$ = "X" or r$ = "x"
' Erase previous status line
locate 1, 1
print string$(80, 32)
' Tell the user how to resume
locate 1, 1
print "Display frozen - press <C> to continue"
do
r$ = inkey$
loop until r$ = "C" or r$ = "c"
wend
loop until r$=""'Does the user want to quit?
end
sub sweepdelay (count%)
cal% = 9875 ' Calibrate sweep delay
forz%=0tocount%
fork%=0tocal%: next k%
next z%
end sub
Figure 12.9 shows a typical display produced by the software.
Search WWH ::




Custom Search