forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What's wrong?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Fri May 21, 2010 2:45 pm    Post subject: What's wrong? Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7923
Location: Salford, UK

PostPosted: Mon May 24, 2010 8:40 am    Post subject: Reply with quote

I have tried your code and it works OK for me.
The graph appears in both cases.
Back to top
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Mon May 24, 2010 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2814
Location: South Pole, Antarctica

PostPosted: Mon May 24, 2010 9:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Tue May 25, 2010 2:40 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7923
Location: Salford, UK

PostPosted: Tue May 25, 2010 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
aebolzan



Joined: 06 Jul 2007
Posts: 229
Location: La Plata, Argentina

PostPosted: Tue May 25, 2010 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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