9 Replies Latest reply on Feb 17, 2020 8:11 PM by MoTa_728816

    SerialPlot: interface to real-time data charts

    BoTa_264741

      Hi,

      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.

       

      Component features:

           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.

      /odissey1

       

      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

       

       

      Figure 1. SerialPlot demo project schematic.

      SerialPlot_P4_basic_01a_A.png

      Figure 2. Project data output to SerialPlot graphic software.

      SerialPlot_basic_01a_B.png

      SerialPlot_P4_basic_01a_C2.png

        • 1. Re: SerialPlot: interface to real-time data charts
          MoTa_728816

          Dear /odissey1-san,

           

          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

          003-folder.JPG

          Then I opened Demos/SerialPlot_basic_01a.cydsn/SerialPlot_basic_01a.cydwr.

          When I tried "Clean and Build" I got

          000-notice-list.JPG

          Then I opened  Demos/SerialPlot_P4_basic_01a.cydsn/SerialPlot_P4_basic_01a.cydwr.

          When I tried "Clean and Build" I got

          001-notice-list.JPG

          Apparently, I'm missing some step(s), would you teach me how/what to do?

           

          Best Regards,

          17-Feb-2020

          Motoo Tanaka

           

          • 2. Re: SerialPlot: interface to real-time data charts
            BoTa_264741

            Dear Motoo,

            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.

            Sincerely,

            odissey1

            • 3. Re: SerialPlot: interface to real-time data charts
              MoTa_728816

              Dear Odissey1-san,

               

              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!

               

              Best Regards,

              17-Feb-2020

              Motoo Tanaka

              • 4. Re: SerialPlot: interface to real-time data charts
                BoTa_264741

                Motoo,

                I updated the component library SerialPlot_lib.zip as well due to the component icon not showing correctly in the Components panel. Please reload.

                /odissey1

                • 5. Re: SerialPlot: interface to real-time data charts
                  MoTa_728816

                  Dear odissey1-san,

                   

                  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)

                  012-log.JPG

                  next the bad news is my plot does not look like yours ... orz

                  (2) Data Format Tab

                  010-Data-format.JPG

                  (3) Plot tab

                  011-Plot.JPG

                   

                  I wonder if my plot tab is appropriate.

                  Could you show/teach me your Plot tab setting?

                   

                  Best Regards,

                  18-Feb-2020

                  Motoo Tanaka

                  • 6. Re: SerialPlot: interface to real-time data charts
                    BoTa_264741

                    Moto,

                    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.

                    /odissey1

                    • 7. Re: SerialPlot: interface to real-time data charts
                      MoTa_728816

                      Dear Odissey1-san,

                       

                      Attached is the archive of my current project.

                      I intentionally did not "clean" the project" so it is larger.

                       

                      Best Regards,

                      18-Feb-2020

                      Motoo Tanaka

                      • 8. Re: SerialPlot: interface to real-time data charts
                        BoTa_264741

                        Motoo,

                        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?

                        /odissey1

                         

                        SerialPlot_P4_basic_01a_A1.png

                        • 9. Re: SerialPlot: interface to real-time data charts
                          MoTa_728816

                          Dear Odissey1-san,

                           

                          Something just came to mind.

                          I grubbed another CY8CKIT-042 from our lab stock.

                          And tried with the same project.

                          022-042B.JPG

                          So I realized that my CY8CKIT-042 was broken or at least sick as its output was still

                          023-042A.JPG

                          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

                          024-042A-2.JPG

                          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!

                           

                          Best Regards,

                          18-Feb-2020

                          Motoo Tanaka