Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

How to prevent Print statements from interfering with graphics?

WSinc
New Contributor I
564 Views

I am working on a graphics APP, but I do from time to time have to insert Print statements, for user interaction,

informational purposes, and for debugging.

Despite my best efforts to keep the Print statements away from the graphics part, it corrupts the

graphics output. Of course we know that causing scrolling will destroy the graphics, but in this case no scrolling is involved.

The graphics are still corrupted. It would be nice to keep them in the same window, but maybe that really isn't practical.

 

So, if I open a separate window for the Print statements, how do I direct them to that window, and not the graphics window?

I guess the READ statements would also be in the same window, unless these is some kind of graphics interaction.

0 Kudos
5 Replies
Steven_L_Intel1
Employee
564 Views

You're using QuickWin. OPEN a new unit, let's call it unit 10, FILE='USER'. Rather than using PRINT, which goes to the initial output window, use WRITE (10,*).

0 Kudos
WSinc
New Contributor I
564 Views

I treid that - 

I changed the PRINT statements to Write statements to LGU 10.

but there is still interaction between that and the graphics.

How do I put the WRITE statements in a SEPARATE window from the

graphics window? Do I have to open another window elsewhere?

 

When I say SETWINDOW, I don't see where I can assign a LGU

to that particular window. IS that discussed anywhere?

0 Kudos
Steven_L_Intel1
Employee
564 Views

Did you open a new unit with FILE='USER' ? That would open a new subwindow.

0 Kudos
WSinc
New Contributor I
564 Views

I was able to open two separate windows, but there still is a problem.

One covers the other. I was wondering if there is a way to have both

open, and visible at the same time.

I can shrink one down, but that makes it rather tricky,

trying to switch back and forth, shrinking one then the other.

A rather clumsy user interface.

0 Kudos
Steven_L_Intel1
Employee
564 Views

In the menu bar, select Window > Tile.

0 Kudos
Reply