Simulink: how to send data via serial interface to a device?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
It is the first time for me at all to raise a query in a bulletin board. I hope I do it in a right way.
I want to send data only once via serial interface to an external device. With MATLAB it works fine. Now I try to do the same with Simulink, but it does not work. I only receive zeros. My first question is: which blocks from Instrument Control Toolbox do I have to use - To Instrument/Query Instrument or Serial Send/Serial Receive/Serial Configuration? My data I want to send to the device looks like testdata = ['7E'; '31'; ...]. Before I send these data with my MATLAB-program I converted these data with hex2dec. Do I have to do the same in Simulink at first? I hope there is anybody who can give me a hint. I'm really at my wit's end.
Cheers, Michael
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!