-
SummaryWhen using the Python Is there a setting I could be adjusting to obtain the full response? DetailsI am completing the Profiling Tasks Tutorial. I am able to successfully interact with the AMDC via SDK's terminal:
However, when I try to repeat this in a Jupyter notebook, I run into some trouble with getting the response to If I then issue placeholder AnalysisIt looks like what is happening is that the full response is transmitted from the AMDC to the PC. However, the Is there something I can do to tell the AMDC class to wait longer for the rest of the data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks @Adonay4 for flagging this! This behavior is actually expected for this The AMDC Python interface library waits (blocks) for the command response before returning from the python function call. Since the Of course, once you know this, you can always call the |
Beta Was this translation helpful? Give feedback.
-
I have found another solution. The problem lies in the fact that calling The python code waits until one of the key phrases is detected to stop listening:
I don't know why python is able to still capture some of the output following the first SUCCESS, but this appears to be the case with UART sometimes (I have found with ethernet my output is terminated immediately after the printing of the first SUCCESS) Nevertheless, the workaround is to have |
Beta Was this translation helpful? Give feedback.
I have found another solution. The problem lies in the fact that calling
ctrl stats print
will output two instances of SUCCESS. One at the top right after the command is called, and another at the bottom after all of the output has been printed.The python code waits until one of the key phrases is detected to stop listening: