The code is provided "as is" without warranty of any kind. ADInstruments does not warrant that the functions of the code will meet your requirements, or that the operation of the code will be uninterrupted or error-free, or that defects in it can be corrected.
TimeDelta measures the time from active edges on a start input to active edges on a stop input. It is useful for tasks such as monitoring the performance of a digital PLL or the response time of a system to an input event.
Active edges may be set independently for the start and the stop inputs to be active rising or falling .
Start edges are marked with a green circle. Stop edges are marked with a red square. The time between the two edges is shown in a text bubble above the start trace between the start and stop edges.
TimeDelta looks for the most recent start edge before a stop edge. Only adjacent start and stop edges are paired up. Extra edges in either input are skipped.
Note that TimeDelta does not create sample data at present.
This software was written against Logic2 2.4.10 using the FrameV2 API. It should work with Saleae Logic 2.3.43 and later.
Only the Windows build of the analyzer has been tested by the author. The author is happy to accept pull requests to the https://github.com/GrandFatherADI/TimeDelta repository submitted by users of other platforms to address any OS specific issues found. General and Windows specific issues may be raised using GitHub's normal Issues management facility.
The fastest way to use this analyzer is to download a release from github at https://github.com/GrandFatherADI/TimeDelta/actions. Click on the commit title for the most recent release version (V1.0.3 for example), then at the bottom of the "runs" page click on the Artifacts entry for your platform. This will download a .zip file containing the extension file. Unzip this to a suitable place on your system. Use the "Load Existing Extension..." dialog to point Logic2 at the folder.
If you wish the repository can be cloned and used to build TimeDelta locally. CMake and a C++ compiler are required. Instructions for installing dependencies can be found here: https://github.com/saleae/SampleAnalyzer. This repository also includes more complete build instructions (especially for Mac) in sample_readme.md than the build sysnopsis given below.
Once the repository has been cloned to your machine and tools and dependencies have been installed, from a command line navigate to the root folder of the clone then follow the mantra below appropriate to your system.
mkdir build
cd build
cmake .. -A x64
cmake --build .
:: built analyzer will be located at TimeDelta\build\Analyzers\Debug\TimeDeltaAnalyzer.dll
mkdir build
cd build
cmake ..
cmake --build .
# built analyzer will be located at TimeDelta/build/Analyzers/libTimeDeltaAnalyzer.so
mkdir build
cd build
cmake ..
cmake --build .
# built analyzer will be located at TimeDelta/build/Analyzers/libTimeDeltaAnalyzer.so
For details on the Logic SDK's API please refer to the Saleae's Protocol Analyzer SDK page.