Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: Quick way to add 1D array to Multidimensional array Pin
J4amieC12-Jul-07 23:57
J4amieC12-Jul-07 23:57 
QuestionWindows Media Player 11 Repeat??? Pin
Small Rat12-Jul-07 11:50
Small Rat12-Jul-07 11:50 
Questionreading data from serial port and graph it Pin
ahmad al-omar12-Jul-07 9:35
ahmad al-omar12-Jul-07 9:35 
AnswerRe: reading data from serial port and graph it Pin
PhilDanger12-Jul-07 10:23
PhilDanger12-Jul-07 10:23 
GeneralRe: reading data from serial port and graph it Pin
ahmad al-omar13-Jul-07 10:01
ahmad al-omar13-Jul-07 10:01 
AnswerRe: reading data from serial port and graph it Pin
Ed.Poore12-Jul-07 12:02
Ed.Poore12-Jul-07 12:02 
GeneralRe: reading data from serial port and graph it Pin
ahmad al-omar13-Jul-07 10:05
ahmad al-omar13-Jul-07 10:05 
GeneralRe: reading data from serial port and graph it Pin
Ed.Poore13-Jul-07 12:09
Ed.Poore13-Jul-07 12:09 
The code which displays stuff on the graph is in GraphWindow.cs.  I intended this program as more of a reference than to actually use it.  To see stuff in action do the following:
  1. File | New | Graph
  2. Click the SerialPort icon on the toolbar, this will add a port to the graph window (multiple ones are supported).
  3. Click the little drop-down arrow of the new button and select Properties.
  4. Edit the port settings to what you require (note you must change the Color as this defaults to White and will not display on the graph).
  5. Click the little drop-down arrow and select open, this will open the port and is ready to receive data.
To see data being plotted the sample program requires that data being read on the serial port has two double values seperated by a comma, it then splits these and uses them as the X and Y values of the graph.  Note this was an example so there is no complex error checking or anything like that.  One problem you might come across is the two values and the comma must be read in all at the same time.  How I used this as a demo for my colleagues was to set up the com0com virtual serial port drivers and then I could have another window open in the terminal window and use the combo box to send the comma-seperated values as one string.

Hope that helps, by the way, if you're doing work with serial ports I strongly recommend installing these virtual ports, it makes it perfect for testing stuff because you don't need two hardware ports and a null modem cable, what you write to one port (COM10 on mine) is sent out on the other (COM11 on mine) and vice versa so you can get applications to talk to each other and you can debug things in Hyperterminal etc without having to hook up the hardware system.



QuestionRemoting problem Pin
Wjousts12-Jul-07 9:30
Wjousts12-Jul-07 9:30 
AnswerRe: Remoting problem Pin
Larantz12-Jul-07 11:46
Larantz12-Jul-07 11:46 
GeneralRe: Remoting problem Pin
Wjousts13-Jul-07 2:05
Wjousts13-Jul-07 2:05 
GeneralRe: Remoting problem Pin
Larantz13-Jul-07 23:05
Larantz13-Jul-07 23:05 
Question.Net 3 Pin
mehrdadc4812-Jul-07 9:24
mehrdadc4812-Jul-07 9:24 
AnswerRe: .Net 3 Pin
Zoltan Balazs12-Jul-07 9:29
Zoltan Balazs12-Jul-07 9:29 
GeneralRe: .Net 3 Pin
sidbaruah12-Jul-07 19:55
sidbaruah12-Jul-07 19:55 
AnswerRe: .Net 3 Pin
leckey12-Jul-07 10:05
leckey12-Jul-07 10:05 
GeneralRe: .Net 3 Pin
Christian Graus12-Jul-07 10:11
protectorChristian Graus12-Jul-07 10:11 
GeneralRe: .Net 3 Pin
leckey12-Jul-07 10:44
leckey12-Jul-07 10:44 
GeneralRe: .Net 3 Pin
Paul Conrad12-Jul-07 11:11
professionalPaul Conrad12-Jul-07 11:11 
GeneralRe: .Net 3 Pin
leckey12-Jul-07 11:30
leckey12-Jul-07 11:30 
GeneralRe: .Net 3 Pin
Paul Conrad12-Jul-07 11:43
professionalPaul Conrad12-Jul-07 11:43 
GeneralRe: .Net 3 Pin
leckey12-Jul-07 17:03
leckey12-Jul-07 17:03 
GeneralRe: .Net 3 Pin
Paul Conrad12-Jul-07 17:17
professionalPaul Conrad12-Jul-07 17:17 
GeneralRe: .Net 3 Pin
martin_hughes12-Jul-07 12:21
martin_hughes12-Jul-07 12:21 
GeneralRe: .Net 3 Pin
leckey12-Jul-07 17:00
leckey12-Jul-07 17:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.