Logic 2.0 Python Automation Gui pop-up connect/launch

Hello,

I am integrating to my setup Saleae basic 8 and Logic 2.4.10.
First of all, when I call manager.connect, GUI pop-up and close back. Is there a way to supress the gui pop-up?
I thought maybe manager.launch() as in the example code, would connect without GUI, however If I call it when GUI is closed, I get some error below. If I open the GUI first and execute, it works

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:10430: Connection refused”
debug_error_string = “UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:10430: Connection refused {created_time:“2023-11-03T13:46:47.2443136+00:00”, grpc_status:14}”

So what is the difference between connect and launch APIs?

Best regards
Khulan

Hi @khulan.bayarsaikhan ,

We do not currently support running automation without the GUI. This is something we want to support, but we are not currently working on it.

launch() will start the Logic 2 process and close it when the manager is destroyed.
connect() will not launch Logic 2, and connects to an already-running instance.

Hope that clarifies things!

Ryan

Hi Ryan,

Thanks a lot!

1 Like