How to plot data received

2 ビュー (過去 30 日間)
Roser Torrent
Roser Torrent 2012 年 12 月 5 日
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 件)

カテゴリ

Help Center および File ExchangeFinancial Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by