How to import data from a microprocessor
Ältere Kommentare anzeigen
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 Kommentare
Jonathan Chin
am 15 Okt. 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
am 16 Okt. 2017
Jonathan Chin
am 16 Okt. 2017
Bearbeitet: Jonathan Chin
am 16 Okt. 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
am 17 Okt. 2017
Jonathan Chin
am 17 Okt. 2017
Bearbeitet: Jonathan Chin
am 17 Okt. 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
am 21 Okt. 2017
Jonathan Chin
am 22 Okt. 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
am 24 Okt. 2017
Antworten (0)
Kategorien
Mehr zu Instrument Control Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!