Silverfrost Forums

Welcome to our forums

Native %pl

13 Jul 2019 5:57 #23987

The bug reported on this thread by mecej4 on Fri Sep 22, 2017 is on my 'todo' list but the sample now works correctly. This relates to initialised data in a module. Presumably some other fix has also sorted this one out. So I will simply add this sample to our test suite.

13 Jul 2019 7:38 #23989

Thanks, Paul.

Since this thread is close to thirty pages long, users may find it convenient to use this link for the specific post (regarding a failure to honour initialisation of a module variable): https://forums.silverfrost.com/Forum/Topic/3086&postdays=0&postorder=asc&start=75 .

20 Oct 2019 2:03 #24544

Something that's been on my to do list for a long time. A program to help visualise the torsional modes of a turbine generator shaft system (A multi string/mass system with simple harmonic motion). Graphics using Clearwin+. All done with the native %pl and %br. Much better than looking at a tabulation of eigenvalues and eigenvectors.

The annoying flicker when updating the graphs multiple times can be almost completely eliminated by a call to call SLEEP@(X), X in this case being 0.02

https://www.youtube.com/watch?v=BIXPDzEGNZg

Still a work in progress 😄

Ken

20 Oct 2019 6:01 #24545

SLEEP1@ is usually preferred to SLEEP@.

21 Oct 2019 7:53 #24546

Ken, Paul, Any ideas how to automatically save animated run to AVI or GIF file to show on the conferences as part of Powerpoint presentations instead of run of FTN95 code? MATLAB has such capabilities, by the way

21 Oct 2019 10:47 #24548

Thanks Paul - I'd to look at the help pages for that one.

Dan, afraid I don't have an answer to your question. Hopefully somebody knows the answer, it would certainly to a useful tool.

24 Oct 2019 1:10 #24554

Clearwin has everything to automate creation of gif or png images, this is not a problem,all that is done in one line of code.

Additional Clearwin function is needed to automatically pick up all these images and make living gif or AVI out of them

24 Oct 2019 2:14 #24556

Dan,

I do animation of sinusoidal vibration by first creating the virtual screens then in turn bringing them into focus with i = copy_graphics_region@ (w_handle, 6,6,nxpix,nypix, & handle(ii), 6,6,nxpix,nypix, srccopy)

I use about 16 views that are spaced at equal time/angle intervals > factor = sin(angle) and time each screen update with SYSTEM_CLOCK then use call sleep@ (wait) to give some reality.

However, this does not create a GIF movie file !

If the virtual screens were saved ( I use .png files), it is only a few lines ( say 100 !) of code to create a utility that reads the individual screen dumps then does an animated display, as a small stand-alone .exe. You would also need the clearwin+ .dll's to use as a presentation. Does powerpoint have the ability to import a 'set' of screen images and cycle through them ? When I present, I just run my full clearwin+ viewer .exe from a USB, in another window and alt-tab to the program.

24 Oct 2019 4:39 #24559

I first used animations in early 1990th with FTN77 made EXE. Of course people were awed seeing how man-made star explodes on the screen and such talks usually regarded as the best of the conference.

But not anymore, i'm bored with running own EXEs. The animations must be AVI or GIF files inside Powerpoint presentations, period. Almost everyone now shows animations. Every student now makes animations in MATLAB in no time and no efforts. And indeed the results of simulations very often is better to see as animations.

The process of creation of animations in Fortran has to be ultimately simple. Later I used GIF89 creation program. But ideally the animation has to be more than 256 color. The AVI is probably the best but that requires external programs and spending lot of time with numerous adjustments

This way anyone in your group will use them in their presentations. And years later this will be easier to see animations in the presentations without the headache of potential compiler incompatibilities and specific requirements.

Please login to reply.