The Save Capture command is sent to the analyzer to save the captured data after a capture was started, then stopped. The capture file path cannot be the same as a capture file that is already open. The command format is:
“Save Capture;<capture file path>”
The capture file path must be a fully-qualified path and the extension must be “cfax”
Response: “SAVE CAPTURE;<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. To avoid losing those frames, or not including them in a capture file, the sequence of commands recommended to save all frames captured 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 – Wait until status has been reported.