 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Little-Acorn
Joined: 06 Jul 2008 Posts: 111 Location: San Diego
|
Posted: Fri Jul 25, 2008 4:52 pm Post subject: How do I update every half second? |
|
|
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 |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2403 Location: Yateley, Hants, UK
|
Posted: Fri Jul 25, 2008 5:29 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|