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!