이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
hi, i am doing project of doing ECG on C5505 EVM. As till now i have successfully connected the EVM to pc and getting the signals. Now 1)i wanted to know how i be able to interface it with Matlab/Simulink. i can use both the USB or RS232 port.
2)I want the plots of ECG in realtime so that i can view and further analyze them
3)One thing more is it true that Simulink can be much easier for interfacing the DSP?? Cause i am new to matlab and dont know the code. It would be great help... Thanks...
채택된 답변
Kaustubha Govind
2011년 5월 23일
- You can interface with a serial port using a serial port object. Not sure about using the USB interface - does the EVM manufacturer provide driver DLLs? If yes, you can load it into MATLAB using either loadlibrary or calling it from a MEX-function.
- No inputs from me here - were you looking for advice on real-time processing? Note that since MATLAB/Simulink is not running on a real-time OS, it cannot deal with high-frequency inputs, but you may be able to get this working if MATLAB can acquire data fast enough for your application.
- I wouldn't say that Simulink is necessarily easier for interfacing with a DSP, unless you want to generate embedded code from your model and download it to the target.
댓글 수: 10
Talha
2011년 5월 23일
Thanks Kaustubha, for replying...
Now again answers for the previous questions...
1)No, no drivers given, so i'll choose Serial port obj...
2)yes i was asking about Real time... so can't matlab plot graph during the dsp transmitting ecg data...i know it would take time for processing but a delay or so would not hurt much.
3)No codes generating problem, all i have to do is make the ecg plots and do some analyzing on them
So is there is a way i can only use simulink and no requirement of plain Matlab required???
I think you might be able to use the Instrument Control Toolbox with Simulink to achieve this (http://www.mathworks.com/help/toolbox/instrument/brbv41k-1.html), but if you would prefer staying with base MATLAB, then you will need to implement simple MATLAB functions to send/receive data via serial port object and call those from Simulink using either the MATLAB Fcn block or a MATLAB S-Function block.
Talha
2011년 5월 24일
hi Kaustubha,
i have successfully connected the DSP with the Simulink through the Instrument Control Toolbox. Now new problem rose. i used the time scope to view the signals... but the problem is that it shows all the signals from different leads together which is of no use. Now how can i separate them individually??? What components could be used???
You can use the Demux block to separate the signal: http://www.mathworks.com/help/toolbox/simulink/slref/demux.html
Talha
2011년 5월 25일
hi Kaustubha,
i did what you said. i dont't understand how will i know which leads are coming into which scope(Sink). Cause i need to recognize the leads in order to measure Heartbeat etc...
You should probably check the EVM documentation to check what order the signals are written to the port in?
Talha
2011년 5월 27일
can i use Real time windows target for my configuration???
Real-Time Windows Target produces an executable that runs on a Windows-based kernel - it does not apply to EVMs. Why did you consider this product at all?
ook my bad...i have seen the documentations of the different packets coming in from serial port. Also they have told me to write my own S function in order to separate the leads data. One thing more what could be the reason for the high amplitude of order of 10x4...in the scope??
Is the maximum amplitude about 3 x 10^4? If so that would correspond to a signed 16 bit integer, which would be a fairly common sampling format (though unsigned 16 bit integer would probably be more common.)
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Signal Operations에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
