473,786 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

8 New Member
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 2254
debasisdas
8,127 Recognized Expert Expert
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
adeebraza
20 New Member
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
9103
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 terminate the sleep() following execution > of that signal's catching routine. Also, the suspension time may > be longer than requested by an arbitrary amount because of the > scheduling of other activity in the system. I don't understand the...
3
2914
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 Record command button that, when clicked, will display the next record and the previous record, respectively. But what if I want a quick glance at all my records? Is there a way to get the records to display automatically, one after another, with a...
4
2303
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 the screen and keeps the user informed about what is happening during data transfer to/from the Pocket PC. Everything has been working fine with the Notification window until now. Here's the problem: I'm using RAPI to copy the required CAB...
3
2760
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 but they don't seem to take any effect <authentication mode="Forms">
17
3373
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 the hard drive and modify it to automatically retrieve the PC's date/time. I could then add the hacked JS page to my browser's bookmarks. I've already successfully modified and adapted other modem menus, but I don't know how to go about this...
8
44055
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 method.... the timer gets stuck along with the process, meaning it always returns .01 millisecond...... timer hangs with my pc..... i need to get the system time (with milliseconds) before and after calling the webservice then compute for the ...
0
1190
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
3545
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 date.How to get the Time and Date directly from the CMOS. Thanks in advance. Ram
0
1309
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 Sub Form_Load() Timer2.Enabled = False End Sub
0
922
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 snapshot says it is on fetch statement. The job of the stored procedure is to loop through the cursor executing ddl command found in one of the columns and updating the table which is cursored. It is using handler and hold options.
0
9650
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8992
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6748
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.