Upload
melvin-cureton
View
223
Download
1
Embed Size (px)
Citation preview
VB.Net Windows Forms
Portfolio
Serial Scale to Midrange Interface
Melvin Cureton
http://www.linkedin.com/in/melvincureton
864-642-4564
Table of Contents
No. Topic Page
1. Introduction 3
2. Configuration File 4
3. Serial Configuration 6
4. Serial Data Parsing 8
5. Data File Creation 11
6. Transaction Logging/Error Collection 13
Serial Scale to Midrange Interface
The purpose of this document is to provide an overview for a previous project.
The purpose of this project was to process serial data taken from a serial scale an pass it to a midrange system from processing:
• Read serial data from the scale
• Parse the data depending on scale #
• Arrange the data in a way for processing by the midrange system
• Create a flat file in a predetermined directory on the midrange system for automated processing
• Log each weight and its related weight data
• Log all errors for troubleshooting
Configuration File
All of the variables needed for the serial port, file paths, rooms info, and midrange parameters are located in this file so there is no need to change code in the event of a system change.
Serial Configuration
All the settings for the serial port are pulled from the configuration file before opening the port.
Serial Data Parsing/Data File Creation
Above shows parsing of the serial data based on scale before creating the file needed for processing on the midrange system. After everything is parsed and ready , we create a new file at the predetermined path with the properly formatted data.
Transaction Logging/Error Collection
Above is a simple error log that is used to in all subroutines for troubleshooting. Also we write to a simple process log for capturing all the weight information sent over to the midrange system in case we need to look back at what weights were send and when.