Autor Beitrag
bZzR
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 17.10.11 13:08 
Schönen guten Tag :-)


Ich bin grad dabei mich mit Zedgraph anzufreunden
Nun würde ich gerne meine Werte die ich per SerialPort empfange zu nutzen...



ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
        private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
            string werte = serialPort1.ReadTo("E");                      // einlesen bis der wert "E" kommt (z.B 1017P25.5T38.8HE) 
            char[] char1 = new char[3] { 'P''T''H' };                // Temperatur, Druck, Feuchtigkeit
            string[] strings = werte.Split(char1);                   
}


Also die Werte die in strings gespeichert werden in dem Zedgraph weiter verarbeiten


ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
private void Grafik_erstellen(ZedGraphControl graph)
        {
           Zed-Code....
            

           strings //   Der Typ- oder Namespacename "strings" konnte nicht gefunden werden. 


        }



Wie übergebe ich dem Zedgraph- Thread den strings `?




Vielen Dank
bZzR Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mo 17.10.11 19:29 
Backgroundworker, Invoke, Delegate ... bin ich damit Ansatzweise richtig bedient?
Lese dieses schon seit Stunden, verstehe es aber nicht und es kommt bei mir kein passender Code zustande
bZzR Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Di 18.10.11 13:30 
bin echt am verzweifeln.. ich kapiers einfach nciht ... die codes sind alle verwirrend :(