You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentence=an Arduino library for easy plotting using Processing via serial communication.
6
-
paragraph=Supports multi-variable plots against time as well as 2D plotting of an X vs Y variable. Multiple graphs can be displayed at once, with all formatting and scaling handled automatically. Various listener options are provided, including stand-alone options so that the Processing software does NOT need to be downloaded. The listener requires no modification, just start the program on the host computer.
5
+
sentence=An Arduino library for easy plotting on host computer via serial communication.
6
+
paragraph=Supports multi-variable plots against time as well as 2D plotting of an X vs Y variable. Multiple graphs can be displayed at once, with all formatting and scaling handled automatically. A stand-alone listener application, written with Processing, is provided.
@@ -30,10 +24,10 @@ Search for "Plotter" in the Arduino Library Manager.
30
24
31
25
___or___
32
26
33
-
Install directly with the [ZIP file of Plotter](https://github.com/devinconley/ArduinoPlotter-for-Library-Manager/archive/master.zip)/
27
+
Install manually with the [ZIP file of Plotter](https://github.com/devinconley/ArduinoPlotter-for-Library-Manager/archive/master.zip).
34
28
35
29
#### Setup Listener
36
-
Download one of the following stand-alone listener options. Keep the folder intact so the application can access the lib and source folders. These stand-alone applications are dependent on your system having the Java Runtime Engine (JRE) installed.
30
+
Download one of the following stand-alone listener options. Keep the folder intact so the application can access the library and source folders.
Create the Plotter object and add graphs as desired. When adding graphs, the first argument is a String with the title of the graph and the second argument is an int with the number of points displayed at any given time. These two arguments are followed by atleast one String and double reference. Include more arguments (in pairs of a String and double reference) to plot multiple variables on a single time graph. If adding an XYGraph, exactly two of these pairs are required.
61
-
_Although graphs will usually be added during setup(), they can be added and removed at any time (see example on dynamic modification)._
62
55
```arduino
63
56
void setup() {
64
57
p = Plotter();
65
-
58
+
66
59
p.addTimeGraph("Some title of single variable graph", 500, "label for x", &x);
67
60
p.addTimeGraph("Some title of two-variable graph", 500, "label for x", &x, "label for y", &y);
68
61
p.addXYGraph("Title of x versus y graph", 500, "x axis", &x, "y axis", &y);
@@ -75,11 +68,15 @@ void loop() {
75
68
x = 10*sin(2.0*PI*(millis()/5000.0));
76
69
y = 10*cos(2.0*PI*(millis()/5000.0));
77
70
78
-
p.plot();
71
+
p.plot(); // usually called within loop()
79
72
}
80
73
```
81
74
82
75
#### Using the Listener
83
-
Once the Arduino is running, start the listener application that you chose above.
76
+
Once the Arduino is running, start the listener application that you setup above.
0 commit comments