<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sgmk-ssam.ch/index.php?action=history&amp;feed=atom&amp;title=ProcessingDataDDisplay</id>
	<title>ProcessingDataDDisplay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sgmk-ssam.ch/index.php?action=history&amp;feed=atom&amp;title=ProcessingDataDDisplay"/>
	<link rel="alternate" type="text/html" href="https://wiki.sgmk-ssam.ch/index.php?title=ProcessingDataDDisplay&amp;action=history"/>
	<updated>2026-06-09T07:44:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.sgmk-ssam.ch/index.php?title=ProcessingDataDDisplay&amp;diff=1950&amp;oldid=prev</id>
		<title>Kiilo at 21:21, 7 May 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.sgmk-ssam.ch/index.php?title=ProcessingDataDDisplay&amp;diff=1950&amp;oldid=prev"/>
		<updated>2013-05-07T21:21:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:21, 7 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;processing code&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;processing code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nice cute processing serial data logger ...&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;expects data in the for &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; 123,345,789,12,12,3&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; 123,345,789,12,12,3&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;change MAX_INPUTS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and the MIN MAX COLOR arrays of course too&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;from http://www.noro24.de/files/serialgraph.pde&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  SerialGraph.pde&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  SerialGraph.pde&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l152&quot;&gt;Line 152:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 164:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sgmk_wiki:diff:1.41:old-1949:rev-1950:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Kiilo</name></author>
	</entry>
	<entry>
		<id>https://wiki.sgmk-ssam.ch/index.php?title=ProcessingDataDDisplay&amp;diff=1949&amp;oldid=prev</id>
		<title>Kiilo: Created page with &quot;processing code  /*  SerialGraph.pde  Language: Processing    (C)2012 noro24.de, http://www.noro24.de    This program is free software: you can redistribute it and/or modify  it ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.sgmk-ssam.ch/index.php?title=ProcessingDataDDisplay&amp;diff=1949&amp;oldid=prev"/>
		<updated>2013-05-07T21:16:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;processing code  /*  SerialGraph.pde  Language: Processing    (C)2012 noro24.de, http://www.noro24.de    This program is free software: you can redistribute it and/or modify  it ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;processing code&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 SerialGraph.pde&lt;br /&gt;
 Language: Processing&lt;br /&gt;
 &lt;br /&gt;
 (C)2012 noro24.de, http://www.noro24.de&lt;br /&gt;
 &lt;br /&gt;
 This program is free software: you can redistribute it and/or modify&lt;br /&gt;
 it under the terms of the GNU General Public License as published by&lt;br /&gt;
 the Free Software Foundation, either version 3 of the License, or&lt;br /&gt;
 any later version. http://www.gnu.org/licenses/&lt;br /&gt;
 &lt;br /&gt;
 Based on a sketch of Tom Igoe&lt;br /&gt;
 &lt;br /&gt;
 http://wiki.processing.org/w/Tom_Igoe_Interview&lt;br /&gt;
 &lt;br /&gt;
*/&lt;br /&gt;
 &lt;br /&gt;
import processing.serial.*;&lt;br /&gt;
 &lt;br /&gt;
// how many graph to display &lt;br /&gt;
int MAX_INPUTS = 6;       &lt;br /&gt;
boolean fontInitialized = false;  &lt;br /&gt;
Serial serial;                    &lt;br /&gt;
 &lt;br /&gt;
// array of value ranges for each graph &lt;br /&gt;
float[]  MAX_VAL = new float[MAX_INPUTS];&lt;br /&gt;
float[]  MIN_VAL = new float[MAX_INPUTS];&lt;br /&gt;
// Names of each graph&lt;br /&gt;
String[] NAMES = new String[MAX_INPUTS];&lt;br /&gt;
// colors of each graph&lt;br /&gt;
color[]  COLS = new  color[MAX_INPUTS];&lt;br /&gt;
 &lt;br /&gt;
float[] previousValue = new float[MAX_INPUTS];  // array of previous values&lt;br /&gt;
int xpos = 0;                     // x position of the graph&lt;br /&gt;
PFont font;                     // font for writing text to the window&lt;br /&gt;
 &lt;br /&gt;
void setup () {&lt;br /&gt;
  // size of window&lt;br /&gt;
  size(800, 800);        &lt;br /&gt;
  // Serial portname&lt;br /&gt;
  // under Linux we must a make a symbolic link&lt;br /&gt;
  // from the usb device to /dev/ttyS80 or whatever you want&lt;br /&gt;
  // e.g. sudo ln -s /dev/ttyACM0 /dev/ttyS80&lt;br /&gt;
  String portName = &amp;quot;COM3&amp;quot;;&lt;br /&gt;
  serial = new Serial(this, portName, 38400);&lt;br /&gt;
  serial.clear();&lt;br /&gt;
  // don&amp;#039;t generate a serialEvent() until you get a newline (\n) byte:&lt;br /&gt;
  serial.bufferUntil(&amp;#039;\n&amp;#039;);&lt;br /&gt;
  // create a font with the fourth font available to the system:&lt;br /&gt;
  font = createFont(PFont.list()[3], 14);&lt;br /&gt;
  textFont(font);&lt;br /&gt;
  fontInitialized = true;&lt;br /&gt;
  // set inital background:&lt;br /&gt;
  background(0);&lt;br /&gt;
  // turn on antialiasing:&lt;br /&gt;
  smooth();&lt;br /&gt;
  &lt;br /&gt;
  MIN_VAL[0] = -20000;&lt;br /&gt;
  MIN_VAL[1] = -40000;&lt;br /&gt;
  MIN_VAL[2] = -40000;  &lt;br /&gt;
  MIN_VAL[3] = -40000;&lt;br /&gt;
  MIN_VAL[4] = -40000;  &lt;br /&gt;
  MIN_VAL[5] = -40000;&lt;br /&gt;
  &lt;br /&gt;
  MAX_VAL[0] = 20000;&lt;br /&gt;
  MAX_VAL[1] = 40000;&lt;br /&gt;
  MAX_VAL[2] = 40000;  &lt;br /&gt;
  MAX_VAL[3] = 40000;  &lt;br /&gt;
  MAX_VAL[4] = 40000;  &lt;br /&gt;
  MAX_VAL[5] = 40000;  &lt;br /&gt;
  &lt;br /&gt;
  NAMES[0] = &amp;quot;Araw&amp;quot;;&lt;br /&gt;
  NAMES[1] = &amp;quot;Vraw&amp;quot;;&lt;br /&gt;
  NAMES[2] = &amp;quot;PitchRaw&amp;quot;;&lt;br /&gt;
  NAMES[3] = &amp;quot;PitchKalman&amp;quot;;&lt;br /&gt;
  NAMES[4] = &amp;quot;five&amp;quot;;&lt;br /&gt;
  NAMES[5] = &amp;quot;sixn&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
  COLS[0] = color(255, 0, 0); // red&lt;br /&gt;
  COLS[1] = color(0, 255, 0); // green&lt;br /&gt;
  COLS[2] = color(0, 0, 255); // blue&lt;br /&gt;
  COLS[3] = color(255, 255, 0); // violett&lt;br /&gt;
  COLS[4] = color(0, 0, 255); // blue&lt;br /&gt;
  COLS[5] = color(255, 255, 0); // violett&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void draw () {&lt;br /&gt;
  // nothing happens in the draw loop, &lt;br /&gt;
  // but it&amp;#039;s needed to keep the program running&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void serialEvent (Serial serial) {&lt;br /&gt;
  // get the ASCII string:&lt;br /&gt;
  String inString = serial.readStringUntil(&amp;#039;\n&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
  // if it&amp;#039;s not empty:&lt;br /&gt;
  if (inString != null) {&lt;br /&gt;
    // trim off any whitespace:&lt;br /&gt;
    inString = trim(inString);&lt;br /&gt;
 &lt;br /&gt;
    // convert to an array of ints:&lt;br /&gt;
    int incomingValues[] = int(split(inString, &amp;quot;,&amp;quot;));&lt;br /&gt;
 &lt;br /&gt;
    if (incomingValues.length &amp;lt;= MAX_INPUTS &amp;amp;&amp;amp; incomingValues.length &amp;gt; 0) {&lt;br /&gt;
      for (int i = 0; i &amp;lt; incomingValues.length; i++) {&lt;br /&gt;
        // graphing range (0 to window height/number of values):&lt;br /&gt;
        float ypos = map(incomingValues[i], MIN_VAL[i], MAX_VAL[i], 0, height/incomingValues.length);&lt;br /&gt;
 &lt;br /&gt;
        // figure out the y position for this particular graph:&lt;br /&gt;
        float graphBottom = i * height/incomingValues.length;&lt;br /&gt;
        ypos = ypos + graphBottom;&lt;br /&gt;
 &lt;br /&gt;
        // make a black block to erase the previous text:&lt;br /&gt;
        noStroke();&lt;br /&gt;
        fill(0);&lt;br /&gt;
        rect(10, graphBottom+1, 110, 20);&lt;br /&gt;
 &lt;br /&gt;
        fill(255);&lt;br /&gt;
        int textPos = int(graphBottom) + 14;&lt;br /&gt;
        if (fontInitialized) {&lt;br /&gt;
          text(NAMES[i] + &amp;quot;:&amp;quot; + incomingValues[i], 10, textPos);&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        // draw a line at the bottom of each graph:&lt;br /&gt;
        stroke(127);&lt;br /&gt;
        line(0, graphBottom, width, graphBottom);&lt;br /&gt;
        // x -axis&lt;br /&gt;
        //line(0, graphBottom/2, width, graphBottom/2);&lt;br /&gt;
        &lt;br /&gt;
        // change colors to draw the graph line:&lt;br /&gt;
        stroke(COLS[i]);&lt;br /&gt;
        line(xpos, previousValue[i], xpos+1, ypos);&lt;br /&gt;
        &lt;br /&gt;
      &lt;br /&gt;
        &lt;br /&gt;
        // save the current value to be the next time&amp;#039;s previous value:&lt;br /&gt;
        previousValue[i] = ypos;&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    // if you&amp;#039;ve drawn to the edge of the window, start at the beginning again:&lt;br /&gt;
    if (xpos &amp;gt;= width) {&lt;br /&gt;
      xpos = 0;&lt;br /&gt;
      background(0);&lt;br /&gt;
    } &lt;br /&gt;
    else {&lt;br /&gt;
      xpos++;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Kiilo</name></author>
	</entry>
</feed>