Click here to Skip to main content
12,508,185 members (42,395 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET3.5 C# .NET Visual-Studio , +
I need to create a graph from a number of values , which are only obtained when the program is running.

I have created a GUI which will call command prompt and execute some commands. I get various values from this which needs to be plotted in a graph.
If I store them in a variable, then at the end, they just turn out to be zero and I am not able to incorporate them in the graph.

I am using Visual Studio 2008 with Chart-Addons on 3.5 .NET framework.

PLEASE HELP.

Thank you in advance.
I really appreciate it!
Posted 11-Apr-13 6:23am
Comments
richcb 11-Apr-13 12:24pm
   
Try storing the variables in Session and then pull them back out at then end when you need them.
Sandeep Mewara 11-Apr-13 12:49pm
   
Session? Not for winforms.
richcb 11-Apr-13 12:51pm
   
Dang, I was only looking at the tags and did not see the huge letters that said Windows Forms. My mistake.
Sandeep Mewara 11-Apr-13 13:01pm
   
Thats ok. Happens. :)

:thumbsup:
Sergey Alexandrovich Kryukov 11-Apr-13 16:05pm
   
Real time, no kidding? What do you thing "real time" is? :-)
—SA
johannesnestler 12-Apr-13 8:57am
   
So your problem is: You just don't see the values in your graph? I'd guess there is something wrong with your "recording" code. Let the Debugger run, and have a look... Btw. I had to record "real-time data" coming from a special kind of serial communications hardware. (this hardware produced exact timestamps, so I could show them async ordered by timestamp in a Producer-consumer pattern). I mention this because you may seek further advice if you have to handle kind of "real-time" data.
Sadhana Sundar 12-Apr-13 11:50am
   
Yes, the problem is I have no recording code as such.
I don't have a way to store the data I get into a variable!
If that can be solved, then I can implement it in my chart..

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


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2016
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