How to import data from a microprocessor
이전 댓글 표시
I am making an interface through app designer but I do not know how to receive the data stored in a microprocessor using a tcpip object.
댓글 수: 8
Jonathan Chin
2017년 10월 15일
Can you be more specific in your issue? Are you having networking issues or not sure how to set up a tcp object in matlab?
Guillermo Cid Espinosa
2017년 10월 16일
Jonathan Chin
2017년 10월 16일
편집: Jonathan Chin
2017년 10월 16일
Can you communicate with the device with out using the ByteAvailableFcn to read back but instead use fread? If so then the device might not be sending a terminator or enough bytes
Guillermo Cid Espinosa
2017년 10월 17일
Jonathan Chin
2017년 10월 17일
편집: Jonathan Chin
2017년 10월 17일
fprintf(app.t_waveforms,'GET /Interface_waveforms');
What I would try is to manually send this command, then do a fread to get the data back and send it again. If this works it could be an issue with how your app is sending command and getting the data.
Do you only hit the StartButton once? if so I think you need to have some way of sending the above command
Guillermo Cid Espinosa
2017년 10월 21일
Jonathan Chin
2017년 10월 22일
try adding a button that runs calls by itself
fprintf(app.t_waveforms,'GET /Interface_waveforms');
I believe you need to call this every time you want data then put a debug point there to see if you can get some data
Guillermo Cid Espinosa
2017년 10월 24일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 TCP/IP Communication에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!