PSoC 5LP connection with Matlab

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello everyone,

I'm creating this topic because I'm having some difficulties on interfacing PSoC with Matlab. I've watched this tutorial (Graficar Datos De PSoC 4 En MATLAB - YouTube ) and the project compiles, but when run the Matlab side, it gives me an error that seems to say that nothing is passed from the UART to Matlab.

What I do is generate a wave with the WaveDAC component, which is the one that the ADC detects and then I want to be able to see the ADC output on Matlab (using the UART component).

Attached to this post are the PSoC project and the MATLAB script

4 Replies
Anonymous
Not applicable

The reason it isn't coming out the uart is because the uart is getting "uninited".

UART_initVar in Uart_PutString is geting unset back to 0.

Still chasing it.

0 Likes
Anonymous
Not applicable

Sorry, I don't understand. You're saying that everytime I call Uart_PutString, it goes back to 0? If so, how do I solve it?

I managed to run the program, but my output on MATLAB is the following:

matlab output.JPG

Any idea why? I'm trying to get a full and smooth wave, in order to apply an FFT for spectral analysis

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received
Anonymous
Not applicable

ok thank you all for the help

0 Likes