Silverfrost Forums

Welcome to our forums

What's wrong?

21 May 2010 1:45 #6401

I do not understand what I am doing wrong but should be something silly! If I put

ans=winio@('%ca[Señal Recuperada]%bg[grey]&') ans=winio@('%cn%6bt[OK]&') ans=winio@('%pl[style=0,colour=red,x_array]',600,400,npt,matrix_so%x,signal)

the plot appears, but if I put

ans=winio@('%ca[Señal Recuperada]%bg[grey]&') ans=winio@('%pl[style=0,colour=red,x_array]&',600,400,npt,matrix_so%x,signal) ans=winio@('%ff%cn%6bt[OK]')

the plot vanishes! just the OK button and a very nice white window...

Any clue?

Agustin

24 May 2010 7:40 #6407

I have tried your code and it works OK for me. The graph appears in both cases.

24 May 2010 5:43 #6409

FTN95 5.50 and Windows 7?.

Sorry, I have just tested the code apart from my program and works fine as you said. I do not understand why it does not inside the code of my large program....I have to check what's wrong, but there should be no difference at all! Murphy's law perhaps?

Thanks,

Agustin

24 May 2010 8:55 #6410

while in debugging stage always use /undef and also tons of other relevant debugging options ( C:\>FTN95 /? if someone forgot). FTN95 is particularly good at finding errors. No other compiler in this world is even close.

25 May 2010 1:40 #6412

Well, I have investigated the problem a little more. Let's look an the following code:

ans=winio@('%ca[Señal Recuperada]%bg[grey]&') ans=winio@('%pl[n_graphs=1,style=0,colour=red,x_array]&',600,400,f,matrix_so%x,signal) ans=winio@('%ff%nl%cn%6bt[OK]')

This code runs fine if the program is compiled with the CHECKMATE option and....if f is set lower than 9800. With f=9800 and CHECKMATE, the %pl window appears empty and the OK button as well.....

With UNDERFLOW option, the program crashes and the error FLOATING POINT UNDERFLOW is reported...

Therefore, it seems that the number of points to be plotted using %pl has a limit. Is that so, Paul?

But....if I write:

f=9800 ans=winio@('%ca[Señal Recuperada]%bg[grey]&') ans=winio@('%cn%6bt[OK]&') ans=winio@('%pl[n_graphs=1,style=0,colour=red,x_array]',600,400,f,matrix_so%x,signal)

the program works!!! with CHECKMATE and UNDERFLOW

Well, now I really do not understand anything at all!.

Agustin

25 May 2010 6:57 #6414

I guess there will be a limit to the number of points that you can plot but I don't know what it is. %pl uses SIMPLEPLOT. This is a third party library that is nolonger supported. I think that I have seen a reference to documentation for the library elsewhere on this forum. There is limited information in ftn95.chm. Given time I could probably find the information but trial and error will give you an approximate answer more quickly.

25 May 2010 6:47 #6422

Yes, I guess so, but the intriguing point is that the location of the sentence related to the OK button change dramatically the result. One expects that plotting routines should have some limitations but in this case seems that the limit is set by Clearwin+ with the %bt location and not by Simpleplot. Or am I missing something?

Agustin

Please login to reply.