This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843: Reading console output from my lua automation script

Part Number: IWR6843

Hi,

I have been exploring ways to read the output of the console after triggering data capture. I would specifically like to capture the "Frame Ended" string output as indicated below so that I can trigger another process from within my automation lua script. The problem is this response arrives at the console output asynchronously and not in response to a specific lua command.

[16:56:22] [RadarAPI]: Frame Ended

[16:56:22] Frame End async event received!

I can see the above output on the output console but I cannot access that output from within my automation lua script.

I spent quite a bit of time trying to redirect the console output to a file that I could process in my script but that did not work. For some reason, redirecting the stdout to a file does not help at this instance.

To recap, following is the top level functionality I am trying to achieve:

1 - Trigger collection of N radar frames using the automation script.

2 - Wait until the console output displays "[RadarAPI]: Frame Ended" (indicating N frames have been collected)

3 - Automation script detects the "[RadarAPI]: Frame Ended" on the console then triggers another post-processing task from within the same lua script.

At the moment, my automation script executes step 1, after which I have to manually intervene to bridge the gap after the N frames are captured.

If you have any suggestions on achieving the above, that will be of great help.

Regards,

Cagri