I am using Logic 2 during development of a product. In order to get certain functionality working in hardware, I frequently follow a sequence of operations like this:
- Reset an embedded device
- Press “Start capture” in Logic 2
- Run some shell commands that produce certain stimuli
- Press “Stop capture” in Logic 2
- Look at captured data to figure out what’s going on
While step 5 is inherently manual, step 1 through 4 are purely repetitive and a prime target for automation. Steps 1 and 3 are easily accomplished using a simple shell script, but I have so far not found a way to start and stop a capture in Logic 2. The Logic 2 automation API seems to only be designed for headless/automated capture without a human looking at the data, and can’t simply start a capture in an existing tab. Is there any known workaround for this?
@armin.brauns Thanks for explaining your use case. Unfortunately, our Automation API isn’t designed with this functionality in mind right now. We’re currently tracking all feature requests related to using automation functions in combination with normal GUI use in the feature request post below.
I’ve added a comment for you to track your need for this, and feel free to add your vote to it as well! Apologies we don’t have a workaround for you at the moment.
Another use case is to use an Elgato Stream Deck controller to start and stop the capture: The Saleae Logic is already launched and configured. Once the capture is completed, back to the application for analysis.
For the Stream Deck case, I’d try keeping Logic 2 focused and mapping a Stream Deck action to OS-level UI automation (AutoHotkey on Windows, AppleScript/xdotool elsewhere) instead of the Automation API. It’s brittle compared with an official API, so add a short delay or confirmation that capture actually started before sending stimuli. If Logic 2 has a start/stop shortcut, use that; otherwise target the capture button by window title/offset. Not ideal, but it may cover the existing-session workflow until the feature request lands.