replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - How do I update every half second?
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 

How do I update every half second?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Little-Acorn



Joined: 06 Jul 2008
Posts: 111
Location: San Diego

PostPosted: Fri Jul 25, 2008 4:52 pm    Post subject: How do I update every half second? Reply with quote

Basically I'm looking for a way to generate an interrupt(I guess, or something similar) every half second. I have a display with a number of edit boxes that display one variable each. There's a program running in the background that occasionally changes the value of some of those variables, it's pretty random. I'd like to update them twice a second, even though many changes to the variables might have been made since the last update.

I've been looking at CLOCK and TIMER commands, but haven't yet seen anything that seems to run quietly in the background while letting my main program also run in the background, then pops up every half second and somehow cues me to run the UPDATE procedure. Maybe I just glossed over the part I'm looking for, wouldn't be the first time. I'm a FORTRAN oldie but a Windows newbie, and am also new to the Silverfrost compiler and its extensions, interrupts etc.

Thanx all!
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2403
Location: Yateley, Hants, UK

PostPosted: Fri Jul 25, 2008 5:29 pm    Post subject: Reply with quote

Assuming you are running ClearWin+, just add this:

IB = WINIO@('%dl&',0.50D0,Service_FN)

... where Service_FN is an INTEGER*4 function that is called every half second, and updates your window ... the 0.5D0 is at half second intervals.

Eddie
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 -> Support 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