-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Many features can be added to ScanaStudio logic analyzer software via scripts. Think of those scripts as plugins to add features like :
- Protocol analyzers (decoders)
- Trigger sequence generators
- Signal builders (for Logic analyzers that can generator logic patterns).
This page is a general help page for all scripts that do not have a dedicated help page, for that reason, some sections of this document may not applies to every script.
ScanaStudio scripts are open source and highly documented. This wiki is mainly meant for the persons using the script (not the programmers writing new scripts or modifying existing ones). If you're interested about the script API, you can find more information here.
At any moment, you can launch the script manager from ScanaStudio by clicking on the settings menu (top right corner) and then "Scripts manager".
This windows lets you download any new scripts that may have been added online, or update existing scripts. You may also open your local script folder, which is simply a folder on your computer where are scripts (JavaScript files) are stored. If you create a script, you have to add it to that folder to be seen and used by ScanaStudio.
Protocol analyzer is a feature that, as the name implies, help analyzing signals. A protocol analyzer will add a "decoding" packet on top of the logic signals, as shown in the image below:
To add a protocol analyzer to your ScanaStudio workspace, go to the protocol tab, and click "Add new", as in the image below:
Then follow the steps to select a protocol and configure its settings. If you're not sure about the settings, leave default ones: you can always click on the decoder name again to modify the settings later. Once a protocol is added to your workspace, decoding starts right away. If no any signals have been captured, decoding will start as soon as new signals are captured.
Some scripts support the trigger sequence generation feature. A trigger sequence generator is simply a way of describing a trigger condition that is related to a particular protocol (e.g. a particular word on a serial interface, or a start condition in an I2C bus, etc.). In other words, this feature allows the logic analyzer to trig on specific protocol (a feature usually found in very expensive high end tools).
A protocol trigger is tightly related to a protocol, thus, before attempting to configure trigger for a specific protocol, it's mandatory to start by ensuring the protocol analyzer is added to the workspace, configured, and properly decoding the some test signals.
To add a trigger simply go to the trigger tab, and click "Edit trigger" as shown in the image below:
Then, simply follow the instruction depending on the type of trigger you're configuring, and click OK.
Some script may offer a signal builder feature. Simply put, the signal builder's job is to build logic patterns, that can later be generated by a logic analyzer that support the generator mode.
If your logic analyzer support signal generation (e.g. SQ Series) you should find a "signal builder" tab among ScanaStudio tab (left side pane).
Simply open the signal builder tab, and click "add builder". Then follow the steps to select a signal builder and configure it. The image below shows the example of PWM signal generator: