Ask Your Question
0

How to compile an ipl file in the IPLAN compiler?

asked 2014-02-21 10:09:39 -0600

SC gravatar image

updated 2014-03-19 08:56:48 -0600

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 image description

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Try giving it the full path to the .ipl file

EBahr gravatar imageEBahr ( 2014-02-21 12:28:27 -0600 )edit

@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.

SC gravatar imageSC ( 2014-02-21 15:57:00 -0600 )edit

@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 gravatar imageEBahr ( 2014-04-02 13:58:44 -0600 )edit

@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"

SC gravatar imageSC ( 2014-06-16 09:01:00 -0600 )edit

3 answers

Sort by » oldest newest most voted
0

answered 2018-12-01 17:31:18 -0600

jialink gravatar image

updated 2018-12-01 17:32:18 -0600

  1. Step 1: copy file "test1.ipl" to same folder "IPLAN33.exe" (or any where u want)
  2. Step 2: Run "IPLAN33.exe" as administrator (noticed)
  3. Step 3: type "test1" (or full path if not same folder "IPLAN33.exe")
  4. Step 4: done! File "test1.irf" will be saved in the same folder "IPLAN33.exe"
edit flag offensive delete link more
0

answered 2014-02-21 21:27:15 -0600

jconto gravatar image

When I compiled ipl files, I run it from DOS:

  • Open a dos windows at your working folder and run first "SETPSSEPATH.BAT" provided by PTI during the installation of PSSe (which set the path to the BIN folder where all the PSSe executables are located.
  • enter: .. c>..WF>iplan mycode[.ipl]

and the corresponding *.irf will be saved in the same working folder.

edit flag offensive delete link more

Comments

@jconto, thanks for your suggestion. But still got error, please see the updated pic.

SC gravatar imageSC ( 2014-03-19 08:59:27 -0600 )edit

I noticed your dos window open at the ..pssbin\ folder where the iplan application is located. Type: ..>iplan mycode, where "mycode" has the full path of your ipl code. A simple test ipl code: program hello print 'hello' end

jconto gravatar imagejconto ( 2014-03-19 20:39:22 -0600 )edit
0

answered 2014-03-13 17:20:49 -0600

EBahr gravatar image

I hope you figured this out already, but if not this should work : "TEST1.ipl" -RUN

edit flag offensive delete link more

Comments

@EBahr, the double quatation marks matter. But still got error, please see the updated pic.

SC gravatar imageSC ( 2014-03-19 08:58:31 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-02-21 10:09:39 -0600

Seen: 2,118 times

Last updated: Dec 01 '18