Skip to content

Instantly share code, notes, and snippets.

View adisuciu's full-sized avatar

Adrian Suciu adisuciu

  • Analog Devices Inc.
  • Cluj-Napoca, Romania
  • 01:08 (UTC +03:00)
View GitHub Profile
adi@adi-home:~/glog/build$ git reset 17e7679fd9beb95277ccd0708056ba85363f892b --hard
HEAD is now at 17e7679 Merge pull request #654 from aesophor/fix-path
adi@adi-home:~/glog/build$ cmake -DWITH_GFLAGS=OFF -DCMAKE_INSTALL_PREFIX=/tmp ../
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
adi@adi-home:~/glog/build$ cmake -DWITH_GFLAGS=OFF -DCMAKE_INSTALL_PREFIX=/tmp ../
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find GTest (missing: GTest_DIR)
-- Looking for C++ include pthread.h
/app/lib/cmake/glog/glog-modules.cmake
Call Stack (most recent call first):
CMakeLists.txt:91 (find_package)
CMake Debug Log at /usr/share/cmake-3.20/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
find_package considered the following paths for Unwind.cmake
/run/build/libm2k/cmake/Modules/FindUnwind.cmake
/usr/share/cmake-3.20/Modules/FindUnwind.cmake
========================================================================
Building module gnuradio in /home/adi/scopy-flatpak/.flatpak-builder/build/gnuradio-1
========================================================================
Switched to branch 'scopy'
Cloning into '/home/adi/scopy-flatpak/.flatpak-builder/build/gnuradio-1/volk'...
Submodule path 'volk': checked out '1299d72c396a88fd2679adfd7a919ac00d2cf678'
-- The CXX compiler identification is GNU 10.2.0
-- The C compiler identification is GNU 10.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Index: src.pro
===================================================================
--- src.pro (revision 3381)
+++ src.pro (working copy)
@@ -26,6 +26,7 @@
CONFIG += dll
win32|symbian: DEFINES += QT_DLL QWT_DLL QWT_MAKEDLL
+ unix:!macx:!android {
!isEmpty( QMAKE_LFLAGS_SONAME ) {
-- cmake version: 3.21.2
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@adisuciu
adisuciu / gist:e1d3d96582f7791be4d79f55be64e497
Created September 2, 2021 16:55
gnuradio mingw64 build
Cloning into '/home/Adi/gnuradio/gnuradio'...
remote: Enumerating objects: 4117, done.
remote: Counting objects: 100% (4117/4117), done.
remote: Compressing objects: 100% (3396/3396), done.
remote: Total 4117 (delta 1919), reused 1148 (delta 652), pack-reused 0
Receiving objects: 100% (4117/4117), 4.36 MiB | 4.70 MiB/s, done.
Resolving deltas: 100% (1919/1919), done.
Updating files: 100% (3823/3823), done.
Submodule 'volk' (https://github.com/gnuradio/volk.git) registered for path 'volk'
Cloning into '/home/Adi/gnuradio/gnuradio/volk'...
@adisuciu
adisuciu / ps_script.sh
Last active March 16, 2021 13:00
ADALM2000 powersupply diagnostic
iio_info -u "ip:192.168.2.1" > before_init.txt
echo "--- Saved initial board state to before_init.txt"
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -i voltage0 powerdown 0
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -o voltage0 powerdown 0
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -i voltage1 powerdown 0
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -o voltage1 powerdown 0
iio_attr -u "ip:192.168.2.1" -v -d m2k-fabric clk_powerdown 0
iio_attr -u "ip:192.168.2.1" -c m2k-fabric -o voltage2 user_supply_powerdown 0
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1
2
3
4
5
6
7
8
9
10
import adi
import time
import matplotlib.pyplot as plt
import pandas as pd
class TestClass:
master_ip = "ip:192.168.0.60"
slave_ip = ["ip:192.168.0.61"]
number_of_buffers = 5
out_of_range = False