How to compile an ipl file in the IPLAN compiler?
In my case, I only have used a given and compiled .irf to realize customize output for automatic running. I tried to compile the example given by IPLAN pdf document (see B.7 Sample Graphic Program in page B-19) with IPLAN33.exe. Somehow, the error shows the file can't even find!
The ipl file from the example, I called it TEST1.ipl (shown as below) and put it the folder where IPLAN33.exe is.
So according to page 4-1 of the pdf, "Enter filename and options :" TEST1.ipl -RUN
. And an error appears "File not found. TEST1.ipl -RUN (CPLRUN/OPNPTI)".
Please see the screen capture C:\fakepath\IPLAN33.jpg.
After using the suggestions from EBahr and JConto, I changed work directory and also added double quatation marks to"TEST1.ipl" -RUN
. And jump out an error
Allocation for inegers (707406378) failed (error code = 41) Unable to load program.
which I think the simulator is working, the code in TEST1.ipl is not working properly. How do you think?
PROGRAM TEST1
/*************************************************************************/
/* THIS PROGRAM DEMONSTRATES THE GRAPHICS SUBROUTINES OF IPLAN 6.0. */
/* IT PROVIDES EXAMPLES OF: SCALING FUNCTION VALUES TO A PLOTTING */
/* RANGE; CREATING BORDERS; GENERATING AND PLOTTING A SERIES OF */
/* POINTS; AND THE USE OF SEVERAL COMMON ACTIVITIES. */
/*************************************************************************/
INTEGER IER ! ERROR CODE RETURNED BY GRAPHICS CALLS
INTEGER PLOTR ! PLOTTING DEVICE NUMBER
INTEGER B ! DUMMY INTEGER VALUE
INTEGER NDEC ! NUMBER OF DECIMAL PLACES ON AXIS TIC-MARKS
REAL XBIG,XSML ! LIMITS OF PLOTTER--RIGHT, LEFT EDGES
REAL YBIG,YSML ! LIMITS OF PLOTTER--TOP, BOTTOM EDGES
REAL XMAX,XMIN ! LARGEST, SMALLEST X-VALUES TO BE PLOTTED
REAL YMAX,YMIN ! LARGEST, SMALLEST Y-VALUES TO BE PLOTTED
REAL MLEFT,MRIGHT ! PLOT DEVICE SPACE ALLOWED FOR MARGINS
REAL TOP, BOT ! PLOT DEVICE SPACE ALLOWED FOR MARGINS
REAL XBGN,XEND ! STARTING, ENDING POSITIONS OF X-AXIS
REAL YBGN,YEND ! STARTING, ENDING POSITIONS OF Y-AXIS
REAL XS,YS ! LENGTHS OF X, Y-AXES
REAL XTIC,YTIC ! CHANGE IN VALUES BETWEEN AXES’ TICK-MARKS
REAL XPT,YPT ! SCALED PLOTTER POSITION-REPRESENTS (XVAL,YVAL)
REAL XVAL,YVAL ! FUNCTION VALUES
STRING XTTL,YTTL,FX ! X-AXIS, Y-AXIS, MAIN TITLES
B = PROMTC
SET END ’PTEXT END OF PROGRAM’
SET STOP ’TEXT END OF PROGRAM’
CALL SELECT(PLOTR,IER) ! SELECT PLOTTING DEVICE
IF (IER <> 0) THEN
PRINT ’ERROR IN SELECT ’
STOP
ENDIF
XMAX = 10. ! MAXIMUM, MINIMUM NUMERICAL (FUNCTION)
XMIN = 0. ! VALUES TO BE PLOTTED
YMAX = 100.
YMIN =-100.
TOP = 3.0 ! TOP MARGIN, IN SCREEN SPACES
BOT = 1.0 ! BOTTOM MARGIN
MRIGHT= 1.0 ! RIGHT MARGIN
MLEFT =1.0 ! LEFT MARGIN
XBIG = 20.0 ! CALL LAST DEVICE X-LOCATION 20.0, FIRST 0.0
XSML = 0.0 ! (PAGE IS DIVIED UP INTO A FIXED NUMBER OF
YBIG = 20.0 ! LOCATIONS WHICH VARIES WITH THE DEVICE.
YSML = 0.0 ! FRACTIONAL VALUES ARE ALLOWED.)
XBGN = XSML+MLEFT ! STARTING PLOTS > .7 GIVES GOOD BORDER
YBGN = YSML+BOT
XEND = XBIG-MRIGHT
YEND = YBIG-TOP ! TOP MARGIN IS BIGGER BECAUSE OF PLOT’S TITLE
NDEC = 2
CALL STARTPLT(PLOTR,XSML,XBIG,YSML,YBIG,10.0,IER) ! DEFINE THE
IF (IER <> 0) THEN ! NUMBERING OF
PRINT ’ERROR IN STRTPLOT ...
Try giving it the full path to the .ipl file
@EBahr, thanks for your comment. I tried at very first, it doesn't take path, that's why copy the ipl file to the same path where IPLAN33.exe is as well.
@Shengen Try running it without the -RUN option and you will see all sorts of errors. I am not sure what is wrong, but it seems PTI's code is missing something.
@EBahr Tried running without the -RUN, comes out error "Insufficient access rights. TEST1.TMP (CPLRUN/OPNPTI)", I also tried the very simple code "PROGRAM HELL /n PRINT 'HELLO' /n END", and end up with error "End of file. PROGRAM (SIMGLD/RWFIL) ERROR: Simulator stack underflow PROGRAM ERROR.TER"