Click here to Skip to main content
12,955,170 members (59,486 online)
Rate this:
 
Please Sign up or sign in to vote.
Hello Every1......

Im doing a project that required to graphically represent the acquired data from the serial port. First I send/ store all the ascii type data available at the serial port to a text file. So that part is done,

I want to load this data to a data set and after that need to represent them in a graphical form. (plot graphs, charts etc).

Text file content :-
0.00
1.00
.
.
50.00
.
150
.
.
2000


So I can read the text file line by line :).

These are my questions:
1. Can I plot these ascii values without convert them to a numerical form ?
2. What is the best way to do this graphic scene ? load all these asciis to data set/ table --> convert them into a numerical form and plot a graph ? or is there a better way ???
3. I want to represent numerical data in a spread sheet view ! what is best way ? data grid view, set or table ???

Any helps ideas would be appreciated

Thanx
Posted 11-Jul-12 23:03pm
Updated 11-Jul-12 23:10pm
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You can read the file line by line: A simple Google search[^]

1. You can't, because strings don't have a numerical value. So you must convert them to double (perhaps an array or a list).

2. You could use Microsoft Charting control[^] and a fast line chart.

3. I would use DataGridView because it's simple and quite customizable.
  Permalink  
Comments
Ranabasu 13-Jul-12 12:40pm
   
Hi thanx for the response. Yehh as u said It's not a big deal with reading and writing the text file. But I ddnt have an idea of using chart controls. Specially the MS thing :)
kornakar 16-Jul-12 3:50am
   
Ok great :) If the answer helped you out then please mark it as accepted. Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,559
CHill60 3,550
Maciej Los 3,153
ppolymorphe 2,030
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 13 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100