Forum: PC-Programmierung Echtzeit-Diagramma aus kommaseparierten Kommandozeilenprogrammausgaben


von Dorothea Kramer (Gast)


Lesenswert?

Ich habe die Ausgabe eines Kommandozeilenprogrammes unter Windows 7. Ich 
möchte die Ausgabe in Echtzeit als Diagramm sehen. Gibt es Programme für 
genau den Zweck? Wenn nicht, wie mache ich das am schnellsten in c#?

von Dorothea Kramer (Gast)


Lesenswert?

Immer jeweils die letzte Zeile sieht so aus

Text;Wert1;Wert2;Wert3

Dies soll in drei Diagrammen live dargestellt werden.

von Joachim D. (Firma: JDCC) (scheppertreiber)


Lesenswert?

Ich würde die Ausgabe per Pipe in eine Datei laufen lassen und
die so erzeugte csv-Datei per Excel irgendwie automatisch als
Diagramm anzeigen lassen. Halt VB (das ich nicht anfasse).

von ................. (Gast)


Lesenswert?

gnuplot kann alles...

von Dorothea Kramer (Gast)


Lesenswert?

Joachim Drechsel schrieb:
> Ich würde die Ausgabe per Pipe in eine Datei laufen lassen und
> die so erzeugte csv-Datei per Excel irgendwie automatisch als
> Diagramm anzeigen lassen. Halt VB (das ich nicht anfasse).

Excel habe ich nicht aber Openoffice calc. Nenn mir ein paar Stichworte, 
nach denen ich suchen kann um mir eine Lösung zusammenzubauen.

von Dorothea Kramer (Gast)


Lesenswert?

................. schrieb:
> gnuplot kann alles...

wie geht das damit?

von Joachim D. (Firma: JDCC) (scheppertreiber)


Lesenswert?

Dorothea Kramer schrieb:
> Excel habe ich nicht aber Openoffice calc. Nenn mir ein paar Stichworte,
> nach denen ich suchen kann um mir eine Lösung zusammenzubauen.

Irgendetwas mit "Kommandozeile".

von Dorothea Kramer (Gast)


Lesenswert?

wie geht es mit GNUPlot?

von Dorothea Kramer (Gast)


Lesenswert?

Bislang habe ich:
1
        G N U P L O T
2
        Version 4.6 patchlevel 0    last modified 2012-03-04 
3
        Build System: MS-Windows 32 bit 
4
5
        Copyright (C) 1986-1993, 1998, 2004, 2007-2012
6
        Thomas Williams, Colin Kelley and many others
7
8
        gnuplot home:     http://www.gnuplot.info
9
        faq, bugs, etc:   type "help FAQ"
10
        immediate help:   type "help"  (plot window: hit 'h')
11
12
Terminal type set to 'wxt'
13
gnuplot> load 'E:\Program Files (x86)\gnuplot\demo\dgrid3d.dem'
14
gnuplot> shell
15
gnuplot> plot sin(x)
16
gnuplot> plot "E:\AndroidSDK\platform-tools\kkmd.txt" using 1:4 "%lf;%lf;%lf;%lf"    
17
         warning: Skipping unreadable file "E:AndroidSDKplatform-toolskkmd.txt"
18
         No data in plot
19
20
gnuplot> plot "E:\AndroidSDK\platform-tools\kkmd.txt" using 1:4 "%lf;%lf;%lf;%lf"
21
         warning: Skipping unreadable file "E:AndroidSDKplatform-toolskkmd.txt"
22
         No data in plot
23
24
gnuplot> plot "E:\\AndroidSDK\\platform-tools\\kkmd.txt" using 1:4 "%lf;%lf;%lf;%lf"  
25
                                                                 ^
26
         warning: Skipping data file with no valid points
27
                                                                   ^
28
         x range is invalid
29
30
gnuplot> plot "E:\\AndroidSDK\\platform-tools\\kkmd.txt" "%lf;%lf;%lf;%lf"           
31
              ^
32
         Bad data on line 1
33
34
gnuplot> plot "E:\\AndroidSDK\\platform-tools\\kkmd2.txt" "%lf;%lf;%lf;%lf"  
35
              ^
36
         Bad data on line 1
37
38
gnuplot> plot "E:\\AndroidSDK\\platform-tools\\kkmd2.txt" "%lf;%lf;%lf;%lf"
39
              ^
40
         Bad data on line 1
41
42
gnuplot> set datafile separator ";"
43
gnuplot> plot "E:\\AndroidSDK\\platform-tools\\kkmd2.txt" wi li             
44
              ^
45
         Bad data on line 1
46
47
gnuplot> plot "E:/AndroidSDK/platform-tools/kkmd2.txt" wi li    
48
              ^
49
         Bad data on line 1
50
51
gnuplot> plot "kkmd2.txt" wi li                              
52
         warning: Skipping unreadable file "kkmd2.txt"
53
         No data in plot
54
55
gnuplot> plot "kkmd2.txt" wi li
56
         warning: Skipping unreadable file "kkmd2.txt"
57
         No data in plot
58
59
gnuplot> plot "kkmd2.txt" wi li
60
         warning: Skipping unreadable file "kkmd2.txt"
61
         No data in plot
62
63
gnuplot> set output "vxxc"
64
gnuplot> plot "E:/AndroidSDK/platform-tools/kkmd.txt"        
65
              ^
66
         Bad data on line 1
67
68
gnuplot> cd 'E:\AndroidSDK\platform-tools'
69
gnuplot> plot "kkmd.txt"                              
70
              ^
71
         Bad data on line 1
72
73
gnuplot> plot "kkmd.txt"
74
              ^
75
         Bad data on line 1
76
77
gnuplot> plot "kkmd.csv"  
78
              ^
79
         Bad data on line 1
80
81
gnuplot> set datafile separator ";"                            
82
gnuplot> plot "kkmd.csv"           
83
              ^
84
         Bad data on line 1
85
86
gnuplot>

Zeile1 von kkmd.csv sieht so aus:
I/Position( 1603): ;0,021642;0,009885;100,000000;-99,000000

von Daniel (Gast)


Lesenswert?

set datafile separator ","
plot "datei.csv" wi li

von Daniel (Gast)


Lesenswert?

";"

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.