GreenLeader
Senior Member
I've been playing around with a program to plot graphs of data coming in from a serial source (like a PICAXE).
There are some these around, but I've not found one that does quite I what I wanted, so I had a go at my own...
Its an executable that runs on a Windows desktop or Windows pocket PC.
The idea was to make something simple that could show the data graphically and numerically, and ideally could also run on a handheld device, accepting data on the bluetooth serial port.
Android would have been ideal, but I am not much of a programmer so I stuck to something I managed to understand (an obslete compiler called ZEUS).
So, my program accepts up to 10 channels of comma-separated numbers arriving on the serial port like this:
$,0,0,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000
$,156,0.156,0.155,0.614,1.353,0.156,0.155,0.614,1.353,0.614
$,281,0.281,0.277,1.066,2.240,0.281,0.277,1.066,2.240,1.066
$,421,0.421,0.409,1.492,2.859,0.421,0.409,1.492,2.859,1.492
A $ is used to indicate the start each of each new "scan" or batch of channels.
The program is setup using two simple text config files.
The first has one line to specify the serial port, baud rate, ID of a channel config file, and the number of channels to plot. eg
10,9600,1,5
The second is the channel config file which has one line for each channel to define the title, units, min and max values eg
time,s,0,40.0
ch2,m/s,-1,1 etc
The data gets plotted as soon as it arrives.
I am attaching a .wmv file of a few seconds of video to show what it looks like so far..
(replaced the .wmv file with a .zip file with a demo of the software)
3-6-2012
Added new zip file with V1.02 including user manual, PPC and Desktop versions. (Does 10 channels, adds logging capability. Expires Oct 2012, but email me if you find it useful and I'll send an extended version)
There are some these around, but I've not found one that does quite I what I wanted, so I had a go at my own...
Its an executable that runs on a Windows desktop or Windows pocket PC.
The idea was to make something simple that could show the data graphically and numerically, and ideally could also run on a handheld device, accepting data on the bluetooth serial port.
Android would have been ideal, but I am not much of a programmer so I stuck to something I managed to understand (an obslete compiler called ZEUS).
So, my program accepts up to 10 channels of comma-separated numbers arriving on the serial port like this:
$,0,0,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000
$,156,0.156,0.155,0.614,1.353,0.156,0.155,0.614,1.353,0.614
$,281,0.281,0.277,1.066,2.240,0.281,0.277,1.066,2.240,1.066
$,421,0.421,0.409,1.492,2.859,0.421,0.409,1.492,2.859,1.492
A $ is used to indicate the start each of each new "scan" or batch of channels.
The program is setup using two simple text config files.
The first has one line to specify the serial port, baud rate, ID of a channel config file, and the number of channels to plot. eg
10,9600,1,5
The second is the channel config file which has one line for each channel to define the title, units, min and max values eg
time,s,0,40.0
ch2,m/s,-1,1 etc
The data gets plotted as soon as it arrives.
I am attaching a .wmv file of a few seconds of video to show what it looks like so far..
(replaced the .wmv file with a .zip file with a demo of the software)
3-6-2012
Added new zip file with V1.02 including user manual, PPC and Desktop versions. (Does 10 channels, adds logging capability. Expires Oct 2012, but email me if you find it useful and I'll send an extended version)
Attachments
-
475.7 KB Views: 60
Last edited: