Setting up the Peak Can-Bus native extension
The article will help you to configure and set-up the PCAN adapters native extension.
The Peak CAN-Bus adapter uses a native extension, meaning that it instantiates a native executables to open and read data from the devices. Find more about native extensions in the manual.
This native extension contains a source library from Peak and comes with pre-compiled native executables.
Re-compiling the native extension
You just need to re-compile the native extension if the original native executables do not fit to your system (e.g. library incompatibilities with Linux).
Go to Preferences->impulse->Native Extensions->Peak Can Bus Native.
- Please check if your system has the required GNU compatible toolchain installed (g++,make)
- Press Make
mkdir -p linux-x86_64 gcc -m64 main.c ../flux.c ../lz4.c ../fastlz.c linux/src/libpcanbasic_legacy.cpp -I .. -I . -D FLX_CONTROL -D FLX_COMPRESS -D FLX_STDIO -O3 -Ilinux -Ilinux/src -Ilinux/src/libpcanfd -DNO_RT -lm -lpthread -o linux-x86_64/peakcan chmod 777 linux-x86_64/peakcan
Editing the native extension
If you press Edit Converter, impulse opens an editor with the converter sources.
This enables experienced users to enhance the readers native extension or to explore the fst content in a different manner. We are looking forward to get your feedback!