SlideShare ist ein Scribd-Unternehmen logo
1 von 11
The Timer Uses
Southern Technical University
Basra Technical University
Department of Electrical Power Techniques Engineering
Student name:
‫يسح‬‫ن‬‫لع‬‫ي‬‫ترم‬‫ض‬‫ى‬
Supervisor:
‫دعسأ‬‫دالخ‬ .‫م‬
Study / Stage:
‫اسم‬‫ئ‬‫)ي‬B( ‫ث‬‫ا‬‫ن‬‫ي‬‫ة‬
Course:
Computer Programming
2019 / 2020
Introduction
The timer tool is often in need of making us some events
fall after a certain period of time and without entering the
program user and this can do it using the TIMER tool and
the Tick event. The Timer object is really what is invisibly
lets you handle the computer hours from within programs
that you carry out.
When we have timer on the model, it is active on the
equal time periods called intervals and the result of this
activity event is the Tick event (ETT event such as the Click
event or Mouvemouse but special for the Timer object).
The user uses much and will need to use it in many
applications (knowing your birth date and remind you on
the selected day and know when a staff member is set in
the company, calculate the number of years of work to a
one of the parties, a work process for a certain period and
then stopped ...)
Add timer for the model
This tool is located in the Toolbox tool box as primarily
clicking and passed by the model for a fee appear in a
bottom ribbon below you can define as a variable as:
DimTimer1 as a time
Note
: If you do not find this tool in the toolbox, do any:
1place anywhere on the Toolbox toolbox, press the right
click on the right click on the selection of the selection box
of the
2click on a top of the toolbox. Net Framework
Components
3 - Search the tool within this tab and find it in place to
place a correct mark and press OK for which the TV tool
has been added.
The most important features of the tool
Enables and the Interval property are the main
importunateness of this tool and that you will use them as
two basic two cases when using the tool enabled the
property takes the True or False value and the default
value of its False and you have to make them true if you
want to run the mixes and if you want to stop the Timer to
make it False You can change this property to True or False
while running the program and during the design.
Interval property determines the time period after which
the meter is activated and ranging from 0 to 65535 ms.
Second = 1000 milliseconds
If it has: timer1.interval = 2000 will be mixed after two
seconds.
Example :
To create a simple timer that is used in sports
competitions such as running, for example, here we will do
the following:
 We first design the interface, by adding the timer, the
command and the label, as shown in the image below
 After that we rename the command, set the timer
settings, and customize the form (as shown in the
image below) by double clicking inside the form and
we enter the following:
Private Sub Form_Load()
Form1.Caption = "stopWatch"
Command1.Caption = "start"
Timer1.Enabled = False
Timer1.Interval = 100
End Sub
 Then we customize the command, by double-clicking
on it and we set it to change its name with the start
of the timer and in order to determine the start of the
timer (which will start from 0s) :
Private Sub Command1_Click()
If Command1.Caption = "start" Then
Command1.Caption = "stop"
Timer1.Enabled = True
Label1.Caption = "0"
ElseIf Command1.Caption = "stop" Then
Timer1.Enabled = False
Command1.Caption = "start"
End If
End Sub
 After that, we set the timer output to increase it
adding 0.1 seconds during every 100 ms (after
allocating the interval in the form to be 100 ms) as in
the image below:
Private Sub Timer1_Timer()
Label1.Caption = Val(Label1.Caption) + 0.1
End Sub
By this we have finished the simple timer design and we
will operate it and see the result as shown in the pictures
below:
Reference
 World wide web
 Mhm3.blogspot.com

Weitere ähnliche Inhalte

Ähnlich wie The timer use

D365 HRMS - Leave & Absence Automation integration with Microsoft Teams
D365 HRMS - Leave & Absence Automation integration with Microsoft TeamsD365 HRMS - Leave & Absence Automation integration with Microsoft Teams
D365 HRMS - Leave & Absence Automation integration with Microsoft TeamsMohamed Sameem Syed Sahabudeen
 
Create a new work order in Ibm Maximo
Create a new work order in Ibm MaximoCreate a new work order in Ibm Maximo
Create a new work order in Ibm MaximoTony Bertram
 
Tutorial Attendance Pingerprint
Tutorial Attendance PingerprintTutorial Attendance Pingerprint
Tutorial Attendance PingerprintAsius
 
How to Create a Countdown Timer in Python.pdf
How to Create a Countdown Timer in Python.pdfHow to Create a Countdown Timer in Python.pdf
How to Create a Countdown Timer in Python.pdfabhishekdf3
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lecturesmarwaeng
 
Foundations and methods of stochastic simulation
Foundations and methods of stochastic simulationFoundations and methods of stochastic simulation
Foundations and methods of stochastic simulationSpringer
 
Oracle - Program with PL/SQL - Lession 16
Oracle - Program with PL/SQL - Lession 16Oracle - Program with PL/SQL - Lession 16
Oracle - Program with PL/SQL - Lession 16Thuan Nguyen
 
How to assembly the work environment (recipe #1001, but with practical details)
How to assembly the work environment (recipe #1001, but with practical details)How to assembly the work environment (recipe #1001, but with practical details)
How to assembly the work environment (recipe #1001, but with practical details)Nazar Budchanyi
 
Timer control and Tool Strip C#
Timer control and Tool Strip C# Timer control and Tool Strip C#
Timer control and Tool Strip C# JJ Javier
 
Delphi L08 Controls at Runtime P2
Delphi L08 Controls at Runtime P2Delphi L08 Controls at Runtime P2
Delphi L08 Controls at Runtime P2Mohammad Shaker
 
Deltek Accounting System Storyboard
Deltek Accounting System StoryboardDeltek Accounting System Storyboard
Deltek Accounting System StoryboardJim Piechocki
 
eTimeTrackLite_Desktop_manual.pdf
eTimeTrackLite_Desktop_manual.pdfeTimeTrackLite_Desktop_manual.pdf
eTimeTrackLite_Desktop_manual.pdfShobhitMohta1
 
Multi Utility User Guide
Multi Utility User GuideMulti Utility User Guide
Multi Utility User GuideCloud Analogy
 

Ähnlich wie The timer use (20)

D365 HRMS - Leave & Absence Automation integration with Microsoft Teams
D365 HRMS - Leave & Absence Automation integration with Microsoft TeamsD365 HRMS - Leave & Absence Automation integration with Microsoft Teams
D365 HRMS - Leave & Absence Automation integration with Microsoft Teams
 
Create a new work order in Ibm Maximo
Create a new work order in Ibm MaximoCreate a new work order in Ibm Maximo
Create a new work order in Ibm Maximo
 
Tutorial Attendance Pingerprint
Tutorial Attendance PingerprintTutorial Attendance Pingerprint
Tutorial Attendance Pingerprint
 
How to Create a Countdown Timer in Python.pdf
How to Create a Countdown Timer in Python.pdfHow to Create a Countdown Timer in Python.pdf
How to Create a Countdown Timer in Python.pdf
 
9b4c1 vb(pd) (2)
9b4c1 vb(pd) (2)9b4c1 vb(pd) (2)
9b4c1 vb(pd) (2)
 
9b4c1 vb(pd)
9b4c1 vb(pd)9b4c1 vb(pd)
9b4c1 vb(pd)
 
Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
Foundations and methods of stochastic simulation
Foundations and methods of stochastic simulationFoundations and methods of stochastic simulation
Foundations and methods of stochastic simulation
 
Fadal Command Menus: User Manual
Fadal Command Menus: User ManualFadal Command Menus: User Manual
Fadal Command Menus: User Manual
 
Oracle - Program with PL/SQL - Lession 16
Oracle - Program with PL/SQL - Lession 16Oracle - Program with PL/SQL - Lession 16
Oracle - Program with PL/SQL - Lession 16
 
How to assembly the work environment (recipe #1001, but with practical details)
How to assembly the work environment (recipe #1001, but with practical details)How to assembly the work environment (recipe #1001, but with practical details)
How to assembly the work environment (recipe #1001, but with practical details)
 
Learning Robotic Process Automation-81-167
Learning Robotic Process Automation-81-167Learning Robotic Process Automation-81-167
Learning Robotic Process Automation-81-167
 
Timer control and Tool Strip C#
Timer control and Tool Strip C# Timer control and Tool Strip C#
Timer control and Tool Strip C#
 
Trigger
TriggerTrigger
Trigger
 
Delphi L08 Controls at Runtime P2
Delphi L08 Controls at Runtime P2Delphi L08 Controls at Runtime P2
Delphi L08 Controls at Runtime P2
 
Deltek Accounting System Storyboard
Deltek Accounting System StoryboardDeltek Accounting System Storyboard
Deltek Accounting System Storyboard
 
Timetronixdesk presentation2003
Timetronixdesk presentation2003Timetronixdesk presentation2003
Timetronixdesk presentation2003
 
IBM Cognos TM1
IBM Cognos TM1IBM Cognos TM1
IBM Cognos TM1
 
eTimeTrackLite_Desktop_manual.pdf
eTimeTrackLite_Desktop_manual.pdfeTimeTrackLite_Desktop_manual.pdf
eTimeTrackLite_Desktop_manual.pdf
 
Multi Utility User Guide
Multi Utility User GuideMulti Utility User Guide
Multi Utility User Guide
 

Kürzlich hochgeladen

Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...Amil Baba Dawood bangali
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 

Kürzlich hochgeladen (20)

Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 

The timer use

  • 1. The Timer Uses Southern Technical University Basra Technical University Department of Electrical Power Techniques Engineering Student name: ‫يسح‬‫ن‬‫لع‬‫ي‬‫ترم‬‫ض‬‫ى‬ Supervisor: ‫دعسأ‬‫دالخ‬ .‫م‬ Study / Stage: ‫اسم‬‫ئ‬‫)ي‬B( ‫ث‬‫ا‬‫ن‬‫ي‬‫ة‬ Course: Computer Programming 2019 / 2020
  • 2. Introduction The timer tool is often in need of making us some events fall after a certain period of time and without entering the program user and this can do it using the TIMER tool and the Tick event. The Timer object is really what is invisibly lets you handle the computer hours from within programs that you carry out. When we have timer on the model, it is active on the equal time periods called intervals and the result of this activity event is the Tick event (ETT event such as the Click event or Mouvemouse but special for the Timer object). The user uses much and will need to use it in many applications (knowing your birth date and remind you on the selected day and know when a staff member is set in the company, calculate the number of years of work to a one of the parties, a work process for a certain period and then stopped ...)
  • 3. Add timer for the model This tool is located in the Toolbox tool box as primarily clicking and passed by the model for a fee appear in a bottom ribbon below you can define as a variable as: DimTimer1 as a time Note : If you do not find this tool in the toolbox, do any: 1place anywhere on the Toolbox toolbox, press the right click on the right click on the selection of the selection box of the 2click on a top of the toolbox. Net Framework Components 3 - Search the tool within this tab and find it in place to place a correct mark and press OK for which the TV tool has been added.
  • 4. The most important features of the tool Enables and the Interval property are the main importunateness of this tool and that you will use them as two basic two cases when using the tool enabled the property takes the True or False value and the default value of its False and you have to make them true if you want to run the mixes and if you want to stop the Timer to make it False You can change this property to True or False while running the program and during the design. Interval property determines the time period after which the meter is activated and ranging from 0 to 65535 ms. Second = 1000 milliseconds If it has: timer1.interval = 2000 will be mixed after two seconds. Example : To create a simple timer that is used in sports competitions such as running, for example, here we will do the following:  We first design the interface, by adding the timer, the command and the label, as shown in the image below
  • 5.  After that we rename the command, set the timer settings, and customize the form (as shown in the image below) by double clicking inside the form and we enter the following: Private Sub Form_Load() Form1.Caption = "stopWatch" Command1.Caption = "start" Timer1.Enabled = False Timer1.Interval = 100 End Sub
  • 6.  Then we customize the command, by double-clicking on it and we set it to change its name with the start of the timer and in order to determine the start of the timer (which will start from 0s) :
  • 7. Private Sub Command1_Click() If Command1.Caption = "start" Then Command1.Caption = "stop" Timer1.Enabled = True Label1.Caption = "0" ElseIf Command1.Caption = "stop" Then Timer1.Enabled = False Command1.Caption = "start" End If End Sub  After that, we set the timer output to increase it adding 0.1 seconds during every 100 ms (after
  • 8. allocating the interval in the form to be 100 ms) as in the image below: Private Sub Timer1_Timer() Label1.Caption = Val(Label1.Caption) + 0.1 End Sub By this we have finished the simple timer design and we will operate it and see the result as shown in the pictures below:
  • 9.
  • 10.
  • 11. Reference  World wide web  Mhm3.blogspot.com