Read and plot data via USB (in PC)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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  🙂

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This is a free application if non commercial -

   

 

   

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

   

 

   

Rergards, Dana.

View solution in original post

0 Likes
7 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This is a free application if non commercial -

   

 

   

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

   

 

   

Rergards, Dana.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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.

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

 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 🙂

0 Likes
Rolf_Nooteboom
Level 5
Level 5
10 sign-ins 5 solutions authored First solution authored

 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

0 Likes
Anonymous
Not applicable

hello, can you share the method with us?I also need to transmit the datas in sram to matlab in a project recently.Now,i have no ideal about it.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

In PSOC Creator, start page, "File", "Example Projects", there is

   

a USBUART project you can use or modify for your needs.

   

 

   

Regards, Dana.

   

 

   

0 Likes