Skip to content

Instantly share code, notes, and snippets.

View adisuciu's full-sized avatar

Adrian Suciu adisuciu

  • Analog Devices Inc.
  • Cluj-Napoca, Romania
  • 19:43 (UTC +03:00)
View GitHub Profile
0.1 0.9
0.2 0.8
0.3 0.7
0.4 0.6
0.5 0.5
0.6 0.4
0.7 0.3
0.8 0.2
0.9 0.1
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 2 columns, instead of 5. in line 7.
;Scopy version,7d7f313
;Exported on,miercuri mai 16/05/2018
;Device,M2K
;Nr of samples,1600
;Sample rate,1e+08
;Tool,Oscilloscope
;Additional Information,
Sample,Time(S),CH1(V),CH2(V),
0,-8e-06,3.05009,0.0154684,
1,-7.99e-06,3.08137,0.0154684,
#include "libm2k/devicebuilder.hpp"
#include "libm2k/devices.hpp"
#include "libm2k/m2kanalogout.hpp"
#include "libm2k/m2kpowersupply.hpp"
#include "libm2k/m2kdigital.hpp"
#include "libm2k/m2kanalogin.hpp"
#include "libm2k/dmm.hpp"
#include <chrono>
#include <thread>
import adi
class TestClass:
pluto = adi.Pluto("ip:192.168.2.1")
frequencies = range(500000000, 1000000000, 10000000)
iterations = range(10)
_iter = 0
_freq = 0
_data = []
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
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
@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
@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'...
-- 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