Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Read and plot data via USB (in PC)

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Read and plot data via USB (in PC)
Moderator:
RKRM

Post Reply
Follow this topic



Read and plot data via USB (in PC)

p_alejo posted on 29 Sep 2012 1:59 AM PST
Member
2 Forum Posts

Hello everyone. I'm a newbie with PSoC, and I have a simple question (but with a hard solution, I think).

I'm using PSoC 3 in my little project. I'm sending data from the SRAM (a variable in the code), through USB to PC. I can see the data with Cypress Suite USB, and I check it's correct with the LCD. Now, the problem is that I need to see the data like in an oscilloscope (it can be any signal: sine, triangle, etc.). I just need to plot the data that I can read with "Cypress Suite USB". I'm using bulk transfer, but I could change it in the case it's necessary.

So, my question is: Is there an easy way for this?? I think the main problem is the communication, the way I get the data. The other part is to plot the data, it should be almost real time (no more than a second delay). I suposse I should make a program, but it could be very hard and long (I have never program a GUI, just with Matlab). I thought about Matlab, it could be very interesting (mainly for the plotting), but I have been reading about this and I think it's not possible to read data directly from an USB.

Thanks for the help  :)




Re: Read and plot data via USB (in PC)

danaaknight posted on 29 Sep 2012 03:48 AM PST
Top Contributor
1773 Forum Posts

This is a free application if non commercial -

 

http://www.selmaware.com/stampplot/download.htm

 

Rergards, Dana.



Re: Read and plot data via USB (in PC)

hli posted on 29 Sep 2012 06:09 AM PST
Top Contributor
675 Forum Posts

Do you want to show the data on the PC or on the PSoC? For both you can have a lokk at my (old) admScope project http://www.cypress.com/?app=forum&id=167&rID=66880 . It shows the sampled data on a GLCD connected to the PSoC, or on the PC with a special client.



Re: Read and plot data via USB (in PC)

QuickSilver posted on 03 Oct 2012 01:34 PM PST
Senior Member
19 Forum Posts

If USB is not a hard and fast requirement, you could use I2C slave in PSOC. Then use miniprog3 with bridge control panel (http://www.cypress.com/?rID=39244). This software has good chart facility.



Re: Read and plot data via USB (in PC)

p_alejo posted on 21 Oct 2012 12:07 PM PST
Member
2 Forum Posts

 Thanks everyone. I tried your solutions, but finally I discovered an easy&good way to do it: to make the USB work as a COM port. You can use Matlab to receive the data, it's very simple.

Regards :)



Re: Read and plot data via USB (in PC)

rolf posted on 23 Oct 2012 03:22 PM PST
Top Contributor
81 Forum Posts

 Hi,,

USB UART may not always work well on different OS. If you want your application to run on multiple OS, this blog may be of interest:

http://www.cypress.com/?rID=70889

 

Regards,

Rolf






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20