The Clear command is sent to the analyzer to clear the capture buffer. The following is an example of the command string for this command. The command format is:
“Clear”
Response: “CLEAR;<status>[;Reason=<reason>]” where a reason will only be supplied for FAILED status.
It should be noted that Sodera, X240, X500, X500e and X700 have the capacity to buffer frames for processing and it might take some time to clear those buffers. In order to avoid a potential crash of the analyzer when frames are cleared, the sequence of commands recommended to clear would be:
-
Stop Record
-
Is Analyze Complete – Repeat until status indicating completion has been received (see Is Analyze Complete).
-
Stop Analyze
-
Query State – Repeat until successful status with CAPTURE ACTIVE NO DATA or CAPTURE STOPPED reason.
-
Is Processing Complete – Repeat until status indicating completion has been received (see Is Processing Complete).
-
Save Capture – If desired. Wait until status has been reported.
-
Clear