How to plot data received
1 次查看(过去 30 天)
显示 更早的评论
I'm working with dspic30f6013A and untill now I'm put some strings via uart1 and I can it throught hyperterminal.
Now, I want to plot a vector into Matlab. But, first, I try to see a simple string, but I don't know how I can do it.
I saw a training Matlab which explains how to configurate a UART from dspic30 through simulink tool. So, I try to do it, and I put the following boxes:
- dsPIC30fxx Main
- UART Config
- Config ("Double-click to Configure for dsPIC_stf.tlc") -------> I don't understant what it represents.
- UART Receive
How I can see the strings sent from dspic? If I open the hyperterminal window, always I receive a string.. So, I'd like to see it in Matlab.
In order to recieve some strings to hyperterminal, I use the following command in MPLAB code:
sprintf(uText, "\r\n Bon dia!! \r\n");
putsUART1((unsigned int*)uText);
By other hand, if I want to scope a vector (in fact, is a sine acquired from ADC pin) how I can do it?
Thanks a lot!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!