save_screenshot()#
- abstractmethod ScopeDriverBase.save_screenshot( ) bytes[source]#
Capture a screenshot.
- Parameters:
filepath – Output path. When
to_instrument=Falsethis is a host path; whenTrueit is a path on the scope’s filesystem (USB stick, internal storage).to_instrument – When
True, the scope writes the file itself and this returnsb"". WhenFalse, the image is transferred to the host, written tofilepath, and the raw bytes are returned for in-memory use.