How to import data from a microprocessor
Mostra commenti meno recenti
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 Commenti
Jonathan Chin
il 15 Ott 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
il 16 Ott 2017
Jonathan Chin
il 16 Ott 2017
Modificato: Jonathan Chin
il 16 Ott 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
il 17 Ott 2017
Jonathan Chin
il 17 Ott 2017
Modificato: Jonathan Chin
il 17 Ott 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
il 21 Ott 2017
Jonathan Chin
il 22 Ott 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
il 24 Ott 2017
Risposte (0)
Categorie
Scopri di più su TCP/IP Communication in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!