Provided below is custom component (SerialPlot v0.0) for interfacing with real-time plotting software SerialPlot.
The component implements interface to the real-time charting software SerialPlot. Using this component, PSoC data can be easily visualized on personal computer (Linux & Windows). Component doesn’t consume hardware resources, performing all operations by CPU, which is useful for systems with little resources, such as PSoC4. Multiple instances of the component can run simultaneously in the project.
Data types: int8, int16, int32, uint8, uint16, uint32, float
Up to 8 channel output
The component was tested using CY8KIT-059 PSoC5 prototyping kit and CY8KIT-042 PSoC4 Pioneer Kit. Demo projects are provided.
Attached archive contains component library, component datasheet and demo projects for PSoC5 and PSoC4. Please read installation instructions in the readme.txt.
The component provided as-is, no liabilities. It is free to use and modify.
P.S. Demo projects use optional annotation components (which are also provided here in Support_libs.zip):
PSoC Annotation Library: PSoC Annotation Library v1.0
KIT-042 annotation stub: KIT-042: annotation component for CY8CKIT-042 Pioneer Kit
SerialPlot charting SW: SerialPlot – Realtime Plotting Software for UART/Serial Port
Download SerialPlot: Hackaday.io: SerialPlot - Realtime Plotting Software
Figure 1. SerialPlot demo project schematic.
Figure 2. Project data output to SerialPlot graphic software.
Although your component seems to be nice, my brain is not functioning well.
May be, because it's Monday.
Anyway, I extracted zips as below
Then I opened Demos/SerialPlot_basic_01a.cydsn/SerialPlot_basic_01a.cydwr.
When I tried "Clean and Build" I got
Then I opened Demos/SerialPlot_P4_basic_01a.cydsn/SerialPlot_P4_basic_01a.cydwr.
When I tried "Clean and Build" I got
Apparently, I'm missing some step(s), would you teach me how/what to do?
Thank you for reporting the issue. I apparently shortened the path during zipping the Demos archive, so that libraries could not be found automatically. It is corrected now, and updated Demo folder is uploaded instead of the previous one. Please download Demos.zip again. Alternatively, just set the AnnotationLibrary_lib and KIT-042_lib folders in Project Dependencies list.
I have downloaded new Demos.zip and it could be compiled OK!
As I'm about to leave office, I'll test it with my board, tomorrow.
Thank you for your help!
I updated the component library SerialPlot_lib.zip as well due to the component icon not showing correctly in the Components panel. Please reload.
I'm sorry for being messy but...
well, first the good news is your library and demo seems generating right data
(1) Recorded log (numbers seems to be fine)
next the bad news is my plot does not look like yours ... orz
(2) Data Format Tab
(3) Plot tab
I wonder if my plot tab is appropriate.
Could you show/teach me your Plot tab setting?
I downloaded and tested (PSoC5) SerialPlot_basic_01 project again (Creator 4.0). The output seems to be as shown on Figure 2 above in my original post. On the other hand, the data output in the recorded log (chan1: -3, -6, -9, -12, ... -36, -3) doesn't seem to be correct. It supposed to be a sine of amplitude +/-127 and period of 256. The data observed on the SerialPlot monitor coincides with record log in Terminal so the SerialPlot software seems to correctly display incoming data. I am just curious why the data is different? Can you please post the project you worked on, so I could test it.
I downloaded an tested your project SerialPlot_P4_basic_01a on CY8CKIT-042 (Pioneer Kit) using Creator 4.2. Everything seems to be OK, the output is below. Attached also SerialPlot Settings_01.ini file.
Can you please switch the Component output format to ASCII and check with TeraTerm or Putty what data is being generated by the project?
Something just came to mind.
I grubbed another CY8CKIT-042 from our lab stock.
And tried with the same project.
So I realized that my CY8CKIT-042 was broken or at least sick as its output was still
Then another thing came to my mind.
So I started the PSoC Programmer and updated the firmware of my CY8CKIT-042.
Then the output was
After all, the problem was the old firmware on my CY8CKIT-042 (KitProg).
I'm awfully sorry for disturbing you with this.
But next time you see the above middle screen you can suggest your customer
to update KitProg frimware.... orz
Anyway, now I (think that I) am fine.
Thank you very much!