Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / December 2006



Tip: Looking for answers? Try searching our database.

VB Timers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kishore_menda@yahoo.co.in - 25 Dec 2006 11:49 GMT
Hi All,
       Iam facing problems with VB Timers and application is Running
in RealTime. In this application iam using Two Timers one is
5ms(milliseconds) and another Timer is 500 ms (milliseconds), This
process is at HOST side. In this HOST Application there are Some
Buttons and each button contains one Window, when I open another
window or move the present running window at run time then at TARGET
side data is missing or Previous Data is reading this is due to 5ms
timer. HOST Application is having Two FRAMES and in each frame having 4
minor frames  and in each minor frame having 2 messages which will run
for every 5ms(each minor frame) and in each minor frame sending
different data. in 500 ms Timer iam updating the Status of the TARGET.
so, kindly help me to solve this problem and if any further
clarification please mail me.
kishore_menda@yahoo.co.in - 25 Dec 2006 11:53 GMT
kishore_me...@yahoo.co.in wrote:
> Hi All,
>         Iam facing problems with VB Timers and application is Running
[quoted text clipped - 10 lines]
> so, kindly help me to solve this problem and if any further
> clarification please mail me.
can i use threads in vb to avoid timers
Bob O`Bob - 25 Dec 2006 20:06 GMT
> kishore_me...@yahoo.co.in wrote:
>> Hi All,
[quoted text clipped - 12 lines]
>> clarification please mail me.
> can i use threads in vb to avoid timers

If you really mean real time, you won't get there with VB.
Windows is not capable of supporting true real time applications,
regardless of what one may try to write them in.

    Bob
--
Mark Yudkin - 26 Dec 2006 08:36 GMT
1) VB Timers don't have a 5ms granularity.
2) VB6 doesn't support multi-threading (you can go through hoops though, see
Matthew Curland's book).
3) I assume that you're using the phrase "running in real time" outside of
its normal meaning and is merely a bad formulation. Neither VB6 nor XP are
suitable for real real-time systems.

You may be able to get want you want using a multimedia timer (time* API); I
have not tried it. You will need to be familiar with writing callbacks in
VB6 (see McKinney's book for a good introduction).

> kishore_me...@yahoo.co.in wrote:
>> Hi All,
[quoted text clipped - 12 lines]
>> clarification please mail me.
> can i use threads in vb to avoid timers
Dick Grier - 26 Dec 2006 19:40 GMT
Frames?  What sort of data is this?  What is the source?

As other responders have said, Timers do not provide anything resembling
real-time suport (you can see the link Real-time under PC Data Acquistion on
my web site for some thoughts).

However, it may be possible to do what you want to do.  I doubt that a
timer-driven approch will work, though.

Dick

Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.