Standard Courses
can't find the right course?
contact us for customized training
see our course feedback
Upcoming Program Registration
Upcoming Program Registration
No public course is currently scheduled.
- Please keep me posted on the next schedule
- Please contact me to arrange in-house course
- Please contact us to register courses in Singapore, Taiwan and Thailand
Programming for Hardware Interfacing with VB (PC167)
SynopsisThere is a niche segment in the engineering industry that requires engineers or programmers to know the programming methods and techniques in interfacing to various kinds of hardware. IT background programmers may not have knowledge in hardware, while engineering background engineers may not have good command in programming. This short course is aimed to fill the missing skill set to allow engineers and programmers to write software programs that involve hardware interfacing.
Microsoft Visual Basic is one of the most popular programming languages used in windows programming in Microsoft Windows platform. This course will provide a solid foundation in Visual Basic programming techniques in general. Various standard hardware interfaces, including serial port, parallel port, GPIB, TCP/IP, and USB, are described for attendees to understand the working principal, signal protocols, and access methods of these interfaces. Hands-on sessions are followed to learn and practice writing codes for communicating through these interfaces.
Course highlight
Attendees will gain hands-on experience in Visual Basic code development and compilation for hardware interfacing. Some examples of real hardware will be demonstrated to the class as well.
What You Will Learn
Who Should AttendSoftware engineers and programmers who are involved in software programming that requires hardware interfacing.
PrerequisiteTechnical background in electronics or IT at Diploma or Degree levels. Basic knowledge in Visual Basic programming is preferable but not mandatory.
Course MethodologyThe participants are taught VB programming techniques in classroom setting, followed by hands-on programming for each module taught. Microsoft Visual Basic 2005 Express Edition will be used. Theories and practical exercises are equally emphasized.
Course Duration5 days, 9am - 5pm
Course StructureModule 1: Getting Started with Visual Basic 2005 (2 Days)
Relation to older versions of Visual Basic (VB6 and previous) Versions of Visual Basic .NET
Hello world example
Working with controls
Working with controls properties at design time or run time
Object oriented programming
Writing the code
Managing VB2005 data type
Mathematical operations
String manipulation
Controlling program flow using
Looping
Basic Functions
Using check boxes and radio buttons
Exercise
Module 2: RS-232 Serial Communication with VB2005 (0.5 day)
Introduction to RS-232 standard
Universal Asynchronous Receiver Transmitter (UART) protocol
Using the Microsoft Serial Port Control - MsComm32.ocx
Example - Designing an RS-232 communication tool Using platform invoke services call Win32 API functions to access serial port
Module 3: Parallel Port Communication with VB2005 (0.5 Day)
Introduction to Parallel Port
Using the Third-Party Parallel Port Control - Port32.ocx
Example - Controlling an unipolar stepper motor
Using the Third-Party Parallel Port Driver - InpOut.dll
Example - Controlling seven-segment displays
Using platform invoke services to call Win32 API functions to access parallel ports
Module 4: GPIB Communication with VB2005 (0.5 Day)
Introduction to GPIB
Example - Programming Agilent E3631A DC Power Supply through GPIB
Module 5: TCP/IP Communication with VB2005 (0.5 Day)
Introduction to TCP/IP
Using Microsoft WinSock Control - MsWinSck.ocx
Example - Designing a general LAN communication tool
Module 6: USB Communication with VB2005 (1 Day)
Introduction to USB
Using Microsoft Human Interface Device Driver - Hid.dll
Using FTDI Chip D2XX Direct Driver - FTD2XX.dll
Example - USB to 8 digital I/Os interface board using FT232BM chipset

