|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
aebolzan
Joined: 06 Jul 2007 Posts: 229 Location: La Plata, Argentina
|
Posted: Fri May 21, 2010 2:45 pm Post subject: What's wrong? |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon May 24, 2010 8:40 am Post subject: |
|
|
I have tried your code and it works OK for me.
The graph appears in both cases. |
|
Back to top |
|
|
aebolzan
Joined: 06 Jul 2007 Posts: 229 Location: La Plata, Argentina
|
Posted: Mon May 24, 2010 6:43 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2816 Location: South Pole, Antarctica
|
Posted: Mon May 24, 2010 9:55 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
aebolzan
Joined: 06 Jul 2007 Posts: 229 Location: La Plata, Argentina
|
Posted: Tue May 25, 2010 2:40 am Post subject: |
|
|
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 |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue May 25, 2010 7:57 am Post subject: |
|
|
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. |
|
Back to top |
|
|
aebolzan
Joined: 06 Jul 2007 Posts: 229 Location: La Plata, Argentina
|
Posted: Tue May 25, 2010 7:47 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|