12
VB.Net Windows Forms Portfolio Serial Scale to Midrange Interface Melvin Cureton [email protected] http://www.linkedin.com/in/melvincureton 864 - 642 - 4564

Melvin Cureton Portfolio Vb.Net Windows 1

Embed Size (px)

Citation preview

Page 1: Melvin Cureton Portfolio Vb.Net Windows 1

VB.Net Windows Forms

Portfolio

Serial Scale to Midrange Interface

Melvin Cureton

[email protected]

http://www.linkedin.com/in/melvincureton

864-642-4564

Page 2: Melvin Cureton Portfolio Vb.Net Windows 1

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

Page 3: Melvin Cureton Portfolio Vb.Net Windows 1

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

Page 4: Melvin Cureton Portfolio Vb.Net Windows 1

Configuration File

Page 5: Melvin Cureton Portfolio Vb.Net Windows 1

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.

Page 6: Melvin Cureton Portfolio Vb.Net Windows 1

Serial Configuration

Page 7: Melvin Cureton Portfolio Vb.Net Windows 1

All the settings for the serial port are pulled from the configuration file before opening the port.

Page 8: Melvin Cureton Portfolio Vb.Net Windows 1

Serial Data Parsing/Data File Creation

Page 9: Melvin Cureton Portfolio Vb.Net Windows 1
Page 10: Melvin Cureton Portfolio Vb.Net Windows 1

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.

Page 11: Melvin Cureton Portfolio Vb.Net Windows 1

Transaction Logging/Error Collection

Page 12: Melvin Cureton Portfolio Vb.Net Windows 1

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.