What follows is a collection of software for Microsoft Visual Basic
6.0. The
project files are of my own creation and borrowed in a few places from
other sources. Since I deal with embedded systems a good deal
of
the time, a significant number of the projects here deal with the
serial communicaions port on a desktop PC. Disclaimer:
I am by no means an expert VB programmer, use this code at your own
risk.
The projects are rated in complexity from beginner (*), to intermediate
(**), to advanced (***).
-Example using Pset (*) Circle
V1.0
This simple program uses mathematical function and a timer to draw
pixels on the form using the PSet statement. The program is
used
to demonstrate simple form drawing. Notice that the form is
not
repainted automatically. (hide it behind another program,
then
bring it out, and the pixels are not redrawn on the screen)
date added: June 15, 2004
-Send binary data from a file to the comm port every 1/2 a second (**)
DRU
simulator V1.0
This program takes data from a file called DRU.out and line by line
transmitts it out the comm port. This file simulates the
output
of a Directional Radar Unit. (used in roadside trailers
showing
"your speed is XX.") The file "DRU.out" is in binary format.
The
file cannot be viewed in a text editor. In the editor "Multi
Edit" version 7.11, load up the binary file and select the "Text" menu,
then "Hex Mode." The file can then be viewed and edited.
date added: June 15, 2004
-Serial port datalogger with time stamp (**) Serial
datalogger
V1.0
This project time stamps each string of data received though the serial
port. The program then displays the data on the screen for
the
user to see and then logs the data to a file for later analysis.
date added: June 15, 2004
-Bicycle Cadence Logger (**) Cadence
V1.0
This software is for uploading data and viewing the data from a
microcontroller based bicycle cadence meter. (a cadence meter
counts the number of revolutions on the pedals of a bicycle)
Since the VB part of the software was not included on the Circuit
Cellar web site featuring the article, here it is.
date added: June 16, 2004