NECAnalyzer
NECAnalyzer copied to clipboard
How do we add?
Hey @LiveOverflow Any idea on how to add this to saleae doesn't seem to build with the current version
Hi, I had similar issue, Here is how I did it. Get sample plugin with git clone --recursive https://github.com/saleae/SampleAnalyzer Compile to make sure it works with python build_analyzer.py
Then I removed all files in source folder and copy files from this repo, make again and it worked.
You now also need to change this repo's build_analyzer.py
to have
include_paths = [ "./AnalyzerSDK/include" ]
link_paths = [ "./AnalyzerSDK/lib" ]
instead of the old includes, and if you're on a 64-bit system (which you most likely are), you need to replace SampleAnalyzer/AnalyzerSDK/lib/libAnalyzer.so
with the contents of SampleAnalyzer/AnalyzerSDK/lib/libAnalyzer64.so
Compiled .so for Linux for those not wanting to mess with it: https://cloud.rys.pw/s/Y4zTDs6LZqxM5xf
If you are on Arch Linux using the saleae-logic
AUR package, just drop the file as so:
sudo cp libNECAnalyzer.so /opt/saleae-logic/Analyzers/
For those who end up here and wish to get this working (Linux): 1.) Get Saleae SDK: git clone https://github.com/saleae/AnalyzerSDK.git 2.) Put it in this repo folder, so that the folder no looks like: AnalyzerSDK build_analyzer.py example README.md source
- Create file CMakeLists.txt and paste in this script:
project(IR_over)
cmake_minimum_required(VERSION 3.12)
file(GLOB SOURCES
"source/*.h"
"source/*.cpp"
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/AnalyzerSDK/include)
add_library(${PROJECT_NAME} SHARED ${SOURCES})
Cmake is a scripting language that prepares everything for make (make is typically used to build executable programs and libraries from source code) read up two (cmake / make)
4.) run "cmake build ." 5) run "make"
it wil create file called libIR_over.so Copy that file to Saleae application (the one you download from their site and uncompress) and put it in folder named Analyzers
It should work now. What you can learn from my mistakes: 1.) When connecting digital analyzer, make sure you also connect GND (duhh.....) 2.) When adding analyzer to Saleae try different settings (display level - single bits / Digital interpretation +5V is LOW 0V is high)
With all these steps I was able to reproduce what LiveOverflow did, hope this helps someone...