home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
misc
/
cp-4.2.lha
/
cP
/
DEMO.REXX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-05-01
|
864b
|
67 lines
/* */
trace on
options results
signal on break_c
signal on error
NAME = "DEMO"
k = 0
address command
if(~show('p',NAME)) then do
'cp ob myname ' NAME /* Use MYNAME to create REXX Port */
do while (~show('p',NAME))
call delay 50
k = k+1
if k > 20 then exit(10)
end
end
else do
say NAME 'already running'
exit(1)
end
address value NAME
ADD 'sample.asc'
TITLE "This Quick Demo Shows a few of cp's features"
NOCPANEL
FULL
SCREENTOFRONT
XLAB "seconds"
YLAB "volts"
ADD 'sample.bez'
TITLE "Files and points only limited by RAM"
FULL
DELAY 75
GRID
LOGX
TITLE "cP can do LOG and Semi-LOG plots"
FULL
DELAY 75
LINX
YMIN '-1'
YMAX '4'
XMIN '2e-5'
XMAX '1e-4'
TITLE "cP can Zoom in and out"
REDRAW
DELAY 50
YMAX '1'
XMIN '6e-5'
XMAX '6.3e-5'
TITLE "cP is FREEWARE! press Q to Quit"
CPANEL
REDRAW
exit(0)
break_c:
exit(5)
error:
exit(10)
exit