Python automation API - zooming out from script

It’s first post so hi everybody!

I’m trying to find a method from python API to manipulate with zooming out captured data.

At first I used example script which you presented in Automating Long Overnight Captures | Saleae Support

and now I wanted to automatically zoom out to see around 30min. window. Can I somehow set such configuration before starting capture or after running it?

I see that I can connect to running software by code:

import saleae

s = saleae.Saleae(port=10430)

but then following code hangs on waiting for response:

vs = s.get_view_state()
print(vs)

Best regards,
Adam

@adam.lutkowski Thanks for writing in, and welcome to the forum!

Unfortunately, controlling the zoom via the Automation API is currently not possible. The Automation API was originally designed to automate the process of recording data, then subsequently saving those recordings. It was not designed to be used in tandem with a user observing the recorded waveforms in real-time or interacting with the software while the automation script was running.

There are 2 feature requests below that we are tracking which seem somewhat in line with what you are looking for however.

In short, supporting your request would require a small overhaul to the Automation API to allow it to be used in pseudo-automated environments where the user still wants to interact with the software (whether visually or through actual interactions).