Dronetech Serial Visualizer

Description

This application reads a Serial Port for a csv string and parse it to a chart.

The chart series are customized and it can save the chart in a png file for future reference.

All data from serial port is saved in a textbox so it can be exported after to excel or other program for further analysis.

ScreenShots

application screenshot

Application screenshot

image_output

Output Image

Dependencies

  • .Net Framework 4.0
  • Visual Studio 2010

Files

Lastest compiled version (Windows MSI)

Source Code

Example usage

  • Prepare an arduino board with a example sketch that produces a csv serial stream
  • Connect a UART adapter to the USB port (http://www.dronetech.eu/store/index.php?route=product/product&product_id=53)
  • Connect the TX arduino to the RX of the adapter
  • Select port, baud, interval and series format.
  • Press the button and watch the chart go
  • To save an image just press save image at anytime, the file will be saved in the application folder

Series format

The series are generated based on a csv with the following format:

< Index >|< title 1 >,< Index >|< title 2 >

Index is the position on the csv stream that Y axes data is and the title of the Series.

Example:

csv stream -> 123,340

series format string -> 0|Sensor A, 1|Sensor B

Result:

Series 1 title = Sensor A

Serias 1 Y Axes value = 123

Series 2 title = Sensor B

Serias 2 Y Axes value = 340

7 comments

  1. […] *note: since it uses the TinyDebugSerial it can only be used with the tiny-core *note2: it can be visualized with the DTSerialChart available here: http://blog.dronetech.eu/dronetech-serial-visualizer/ […]

  2. Robert says:

    Handy and nice work so far.

    Two things would be nice:
    – allow higher baud rate
    – drop wrongly formated strings

    • Marvin says:

      Thank you for your feedback!

      Next release will have your suggestions, and probably a wizard for the string format.

  3. 3dotter says:

    Nice work.

    Could it also be extended with an option to plot bytes coming in at the serial port?

  4. Rob says:

    failes, I use Windows 10:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at DTSerialChart.Form1.btnStart_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    —————————————-
    DTSerialChart
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files%20(x86)/Dronetech/DTSerialChart/DTSerialChart.exe
    —————————————-
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    —————————————-
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    —————————————-
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    —————————————-
    System.Windows.Forms.DataVisualization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
    —————————————-
    Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    —————————————-
    System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    —————————————-
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    —————————————-
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1586.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    —————————————-

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

Leave a Reply

Your email address will not be published. Required fields are marked *