How to import data from a microprocessor
Show older comments
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 Comments
Jonathan Chin
on 15 Oct 2017
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
on 16 Oct 2017
Jonathan Chin
on 16 Oct 2017
Edited: Jonathan Chin
on 16 Oct 2017
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
on 17 Oct 2017
Jonathan Chin
on 17 Oct 2017
Edited: Jonathan Chin
on 17 Oct 2017
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
on 21 Oct 2017
Jonathan Chin
on 22 Oct 2017
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
on 24 Oct 2017
Answers (0)
Categories
Find more on TCP/IP Communication in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!