极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 186942|回复: 118

[软件下载]SerialChart一个串口数据实时生成图形的软件

  [复制链接]
发表于 2011-11-26 22:27:20 | 显示全部楼层 |阅读模式
在做PID调试,还有卡尔曼滤波融合的时候,如果有一个能把数据实时传回电脑进行分析,并且生成图形的软件,会对调试过程起到事半功倍的效果。

软件的SVN地址是http://code.google.com/p/serialchart/

配置方法介绍地址是http://code.google.com/p/serialchart/wiki/ConfigurationFileSyntax





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

 楼主| 发表于 2012-1-19 10:49:04 | 显示全部楼层
额。。。那我把配置转载过来吧。

#Describes Configuration file syntax for SerialChart application (.scc files)
Introduction
SerialChart configuration is done through a text file. The general format of the file is as follows:
[section1
param1 = value
param2 = value
...

[section2
param1 = value
param2 = valueSetup Section
Each configuration file starts with the [_setup_] section, here you can setup global parameters. For example:
[_setup_
port=COM3   
baudrate=57600

width=1000
height=201
background_color = white

grid_h_origin = 100
grid_h_step = 10
grid_h_color = #EEE
grid_h_origin_color = #CCC

grid_v_origin = 0
grid_v_step = 10
grid_v_color = #EEE
grid_v_origin_color = transparent
Below are the parameters that can be used in the [_setup_] section:
port
Specifies the communication port to which the software connects. For ex: COM1,COM2,..
baudrate
Baudrate in bps (bits per second). Only certain values are currently supported: 110,300,600,1200,2400,9600,19200,38400,57600,115200.
Please note that currently no flow control parameters are supported, and parity will default to "none", stop bits defaults to 1, as these are most common values.
width, height
width and height of the chart area in pixels
background_color
Background color of the chart.
Note about color formats Please note that colors in .SCC files can be specified in hex format (for ex: #FFF, or #FFFFFF) or named color (white,blue,magenta,pink,gray) see: http://www.w3.org/TR/SVG/types.html#ColorKeywords . Please note the special value transparent which means "no color". You can use it if you don't want some elements to be drawn at all.
grid_h_origin, grid_v_origin
Both horizontal and vertical grids will have an origin axis line, usually of different color from the regular grid lines. These parameters specifies the shift of this line from top/left borders of chart in pixels.
grid_h_origin_color, grid_v_origin_color
Color of the grid origin (axis) line.
grid_h_step, grid_v_step
Draw a grid line at each step of pixels from the origin line.
grid_h_color, grid_v_color
Color of regular grid lines.
Default and Field Sections
SerialChart accepts packets in CSV format (other formats might be supported in the future). Each packet comes on a separate line and each field value is separated by comma. Here is an example of sample data that SerialChart would receive:
100,0.50,0.70
101,0.30,0.50
102,0.25,0.35
The purpose of the following sections in the configuration file is to specify parameters for each field in the packet. For example:
[_default_
min=-1
max=1

[Field1
color=gray
min=0
max=255

[Field2
color=blue

[Field3
color=red
You can specify parameters that would apply by default to all fields in the [_default_] section. These parameters will apply to all field sections unless they will be overridden in the field section by parameters with the same name.
In the example above note that Field2 and Field3 will inherit min=-1 and max=1 from the [_default_] section. However Field1 will override these values with min=0 and max=255
After you have defined the default parameters, you should define one section for each field that will be received in a packet. Field sections should be in the order in which they are received in the packet.
The name of field sections can be chosen randomly but should be distinct from the reserved section names _setup_, _default_. For that matter avoid any names that start and end with _.
Below is an explanation of the parameters accepted in the [_default_] and field sections:
min,max
These are the field values that correspond to the top and bottom lines of the chart. In other words if you specify min = -1 and max = 1. A value of -1 will be plotted at the top border of the chart , and a value of 1 will be plotted at the bottom border of the chart. A value of 0 (which is is the midpoint between -1 and 1) will be plotted at the middle of the chart. Field values are linearly mapped from [min,max] range to [0,height] range where height is the chart height in pixels, specified in the setup section.
color
This is the color used to plot a field value. Use transparent color value if you don't want a specific field to be plotted.
dash
Creates an interrupted line. For example: dash = 3 will render 3 samples then will not render the next 3 samples, then render 3 samples, then again pause for 3 samples and so on...

回复 支持 1 反对 0

使用道具 举报

发表于 2011-11-29 16:39:21 | 显示全部楼层
很好用的东西,哈哈
回复 支持 反对

使用道具 举报

发表于 2012-1-17 13:51:36 | 显示全部楼层
好东西~正需要分析软件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-18 19:51:23 | 显示全部楼层
幻生幻灭 发表于 2012-1-17 13:51
好东西~正需要分析软件

无法下载还是无法运行?
回复 支持 反对

使用道具 举报

发表于 2012-1-19 08:23:22 | 显示全部楼层
本帖最后由 幻生幻灭 于 2012-1-19 08:33 编辑
弘毅 发表于 2012-1-18 19:51
无法下载还是无法运行?



下载可以 5M的文件,
但是Google无法访问,没找到怎么配置COM端口才对,我把你的截图参数都敲打进去也没好用
点运行,无效果(怀疑是不是自己没配置的原因)

要是有个参数说明就好啦!{:soso__626321067742274858_2:}
  1. [_setup_]
  2. port=COM1
  3. baudrate=9600

  4. Width=100
  5. height=100
  6. background_color=white

  7. grid_h_origin=10
  8. grid_h_step=1
  9. grid_h_color=#EEE
  10. grid_h_origin_color=#CCC

  11. grid_v_origin=0
  12. grid_v_step=1
  13. grid_v_color=#EEE
  14. grid_h_origin_color=transparent

  15. [_default_]
  16. min=0
  17. max=10

  18. [interval]
  19. color=transparent
  20. min=0
  21. max=100000

  22. [RxAcc]
  23. color=blue

  24. [RxEst]
  25. color=red
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2012-1-19 13:18:56 | 显示全部楼层

悲剧了,还需要安装什么额外的软件么?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-19 18:34:07 | 显示全部楼层
幻生幻灭 发表于 2012-1-19 13:18
悲剧了,还需要安装什么额外的软件么?

额。。。。好像是.net写的。。。
回复 支持 反对

使用道具 举报

发表于 2012-2-14 21:57:56 | 显示全部楼层
这软件好用
回复 支持 反对

使用道具 举报

发表于 2012-2-21 00:26:55 | 显示全部楼层
本帖最后由 沧海笑1122 于 2012-2-21 00:35 编辑

好东西,正要做调取pachube.com远方数据库,打印至串口,这下可以做图形化监视了,谢谢。



怎么出现上图警告,我用的是win7专业版


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-21 08:40:45 | 显示全部楼层
沧海笑1122 发表于 2012-2-21 00:26
好东西,正要做调取pachube.com远方数据库,打印至串口,这下可以做图形化监视了,谢谢。

我用的win7 32正常~~
回复 支持 反对

使用道具 举报

发表于 2012-2-21 09:44:41 | 显示全部楼层
本帖最后由 沧海笑1122 于 2012-2-21 12:17 编辑

试过了,前面是直接运行自解压文件出现了错误,现在我用winrar解压,然后直接运行就没有问题,绿色软件{:soso_e189:} 。

今晚试从pachube.com取数据,然后推至串口,用这个软件展示。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2012-2-22 00:10:55 | 显示全部楼层
7楼滴你滴代码有问题。。。
我复制了你的代码结果也崩溃了!
其实这个软件配合arduino很好用
这是我的测试截图,改天我把他的配置翻译翻译
用这个软件来帮助分析程序太有效了!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2012-2-22 13:02:31 | 显示全部楼层
给力
国内的Arduinor们队伍强大啊
回复 支持 反对

使用道具 举报

发表于 2012-5-1 01:47:53 | 显示全部楼层
不错,收下了,谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-20 02:02 , Processed in 0.050942 second(s), 31 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表