473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Automatic Time Manager (ATM) for On/Off Timer in VB6 through PC's LPT-1 Port

Dear Friends
I want to know how to generate 1/100 of a second time in VB6 for On/Off Timer
function for Automatic Time Manager (ATM) through PC's LPT-1 Port with Interfac. Kindly help me.
Thanks
Khushtar Zia
Nov 11 '07 #1
2 2242
debasisdas
8,127 Expert 4TB
If you are yusing the timer control set its interval to 10 as it is in milliseconds.

But i am not sure that will work because the timer can't fire more than 18.5 times per second. You might need to use some customised timer controls.
Nov 11 '07 #2
Dear Friends
I want to know how to generate 1/100 of a second time in VB6 for On/Off Timer
function for Automatic Time Manager (ATM) through PC's LPT-1 Port with Interfac. Kindly help me.
Thanks
Khushtar Zia
Hi,
I am prividing you a simple method fro generation of 1/100 second time of a second with the help of timer and acounter as given in the following code.

Private Sub Timer1_Timer() ------> Set timer at 10
C = C + 1 '-------------------------------------> Counter for time generation of 10 m.s.
Label1.Caption = C '------------------------> 1/100 Seconds
If C = 100 Then S = S + 1'----------------> 100 counts = 1 mil seconds
If C = 100 Then C = 0 '---------------------> One Second
Label2.Caption = S '-----------------------> Seconds
'
If S = 60 Then M = M + 1'------------------> One Minute
If S = 60 Then S = 0 '----------------------> Max 59.99 Minutes
Label3.Caption = M '----------------------> Minutes
End Sub

Also click on the following link, I think you will get an idea for the same

Thanks
Adeeb Raza
Nov 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Erich Schreiber | last post by:
In the Python Library Reference the explanation of the time.sleep() function reads amongst others: > The actual suspension time may be less than that requested because > any caught signal will...
3
by: DataBard007 | last post by:
My Access 97 database has a form that contains text boxes that display people's names, addresses, phone numbers, etc. The record source is a single table. I created a NextRecord and Previous...
4
by: Robert W. | last post by:
I'm building a WinForms app that is a companion to a Pocket PC app. The WinForms app initiates a separate thread that calls a Notification window. This window resides in the lower right corner of...
3
by: David Kleyman | last post by:
Hello I would like to find out if there is a way to SignOut() the user and redirect the browser back to login page after time out period expired I've added these settings to my web.config file...
17
by: Franc Zabkar | last post by:
My D-Link DSL-302G modem/router has a real-time clock whose settings are volatile. To avoid hand keying the date/time via the modem's JS interface, I wonder if there is a way to copy the JS code to...
8
jeffbroodwar
by: jeffbroodwar | last post by:
please help me get the system's time (with milliseconds) i need it to calculate the Soap request and response time in my SOAP project. i tried to use timer but the problem is, whenever i'm invoking a...
0
by: khushtarzia | last post by:
Hi, Any body can help me to interface 3 digit BCD output of an digital instrument to PC's through LPT-1 to read the BCD out put on screen in 3 digit decimal that is 999 format. Hhushtar Zia
3
by: raam | last post by:
Hello all, I am using Turbo c 2.1. I have reqritten the timer interrupt in PC as per my requirement.When I use gettime() and getdate() in my program leter I am not getting current time and...
0
by: adeebraza | last post by:
Hi Every Body The following is the code for generation of 1/100 of a seconds Time and used Them for recording of a Race time for five Track on a ground. Option Explicit DIM, C,M,S Private...
0
by: RG | last post by:
I have a stored procedure which is called by db2 "call ....." statement from ksh script. When running from AIX DB2 v. 9.1.3 environment, after a while the stored procedure starts to hang and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.