kaamil1984 Posted October 10, 2020 Share Posted October 10, 2020 Hi guys, I'm spying communication between microcontroller and modem. My Analog Discovery 2 with WaveForms does the job, but I want to filter out (or replace) some non-printable characters and continuously observe "transformed" version somewhere. I have no idea how to get data from Spy tab. Is it possible? Link to comment Share on other sites More sharing options...
attila Posted October 13, 2020 Share Posted October 13, 2020 Hi @kaamil1984 Have you used the wait() function in your loop? like it is the above screenshot The Script is executed in the main/GUI thread in order to be able to control this, so long loops without wait function will block the UI. Link to comment Share on other sites More sharing options...
attila Posted October 12, 2020 Share Posted October 12, 2020 Hi @kaamil1984 You can use the "Save to File" in protocol tab and view/edit in external application You can also use the Script tool: Link to comment Share on other sites More sharing options...
kaamil1984 Posted October 13, 2020 Author Share Posted October 13, 2020 I have tried something similar, but when I put ReceiveArray and Print in a while loop everything looks freezed. So I came to the conclusion that script window (due to lack of async support?) is not able to print before script ends. Is that true? Or maybe there is something that can wake up that window from inside loop? I'm working with modem and communication is slow, sometimes there are few second pauses between request and response. I would like to see "live data" instead of post-mortem analysis :) Link to comment Share on other sites More sharing options...
kaamil1984 Posted October 13, 2020 Author Share Posted October 13, 2020 I didn't and I think this is it. One more question - is there some timer/delay that does not block main window? Link to comment Share on other sites More sharing options...
attila Posted October 13, 2020 Share Posted October 13, 2020 Hi @kaamil1984 wait(1.2) # wait 1.2 seconds Link to comment Share on other sites More sharing options...
kaamil1984 Posted October 13, 2020 Author Share Posted October 13, 2020 Thank you sir! Link to comment Share on other sites More sharing options...
Question
kaamil1984
Hi guys,
I'm spying communication between microcontroller and modem.
My Analog Discovery 2 with WaveForms does the job, but I want to filter out (or replace) some non-printable characters and continuously observe "transformed" version somewhere.
I have no idea how to get data from Spy tab.
Is it possible?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.