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.

XSciGraph for Win32

bearoflittlebrain_ol
879 Views

The Scigraph graph-plotting package has been very useful to me (and I expect to others) for some years. Its drawback is that it only works in QuickWin applications.

I have developed XSciGraph by replacing the QuickWin functions in SciGraph with Jugoslavs XEffort functions; XSciGraph works in both QuickWin and Win32 applications. When some bugshave beenremoved and it is verified to replicate SciGraph,I would like to lodge it in an appropriate site for universal access. Jugoslav is, I know, currently too busy to be able to do much to help in installing it on his site. Scigraph was, I think, originally developed by Digital: are their inheritors Intel interested in this?

The primary problem that I have with XSciGraph is getting it to display correctly in its Windows. For example, in the QuickWin program whose source code is attached in XSGQW081125.zip, which should produce the same results as the SGDemo program, the first window sometimes appears as black. Subsequent windows need maximising to flush the graphs to display. XSGQW copies the method in Jugoslavs QW_XFT example to bind an X_Window. Dont forget to install the XEffort library.

If anyone can help me with getting the windows to display correctly it would be greatly appreciated.

Bear of Little Brain

0 Kudos
7 Replies
bearoflittlebrain_ol
879 Views


Bother! Where did my attachment go? I thought that I had at last cracked the rather user-unfriendly "Add Files" facility. Obviously not. Any ideas?

Bear

0 Kudos
Steven_L_Intel1
Employee
879 Views

Click on Add Files

If you have not previously created a file folder here, fill in a new folder name and click Create Folder

Click on the name of the folder you just created

Click the Browse button to browse for the file, click Upload

Click on the name of the file you uploaded

Optional: edit the Title field

Click Add as Attachment

0 Kudos
bearoflittlebrain_ol
879 Views

Steve,

Many thanks - I have recorded your reply so that I will know better next time. Not a blindingly obvious sequence of instructions, however!

The attachment XSGQW081125.zip should now be attached.

Bear

0 Kudos
Steven_L_Intel1
Employee
879 Views

I agree that the steps are not obvious - it took me several tries to figure it out. We've asked for directions to be added.

QuickWin and SciGraph was actually developed by Microsoft. I think we can provide a repository for the files, even if it's only attachments to a forum post here. I'll have to leave it to someone else to help you with the code issues, though.

0 Kudos
bearoflittlebrain_ol
879 Views

Steve,

Thanks I may take you up on the offer when it is working.

I have solved my black screen problem I neglected to repaint the window at the end of plotting: calls of XUpdateWindow(xWndPlt) in the appropriate places have cured it.

My next problem is that each graph overwrites the previous one in a single child window I havnt yet figured out how to get the series of child windows produced by SGDemo. The method that I use from Jugoslavs QW_XFT starts with getting the screen handle using

hWndPlot = GethWndQQ(0)

Nothing else that I have tried seems to work in QuickWin and by repeating the call I naturally get the graphs overwriting.

I am attempting to attach an .exe file XSGQW.bear to demonstrate this. If it gets though to the forum, rename it to XSGQW.exe and run.

Bear of Little Brain

0 Kudos
Steven_L_Intel1
Employee
879 Views

SGDEMO creates multiple windows.

0 Kudos
bearoflittlebrain_ol
879 Views

Yes, but that's in a pure QuickWin program. I have removed all of the QuickWin functions from all but the initial calling section. Replacing the QuickWin functions by Jugoslav's XEffort functions as in the QW_XFT example is what causes my problem.

I think that itneeds someone who has used XEffort a bit to help with this one - is there anyone out there?

Bear

0 Kudos
Reply