This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import iio | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy import signal | |
import time | |
def gen_data(fs, fc): | |
N = 1024 | |
ts = 1 / float(fs) | |
t = np.arange(0, N * ts, ts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import iio | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy import signal | |
import time | |
def test_complex_buffer(): | |
ctx = iio.Context('ip:analog.local') | |
dev = ctx.find_device('cf-ad9361-lpc') | |
# chan = dev.find_channel('voltage10', is_output=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.provider :libvirt do |libvirt| | |
libvirt.disk_bus = "virtio" | |
libvirt.driver = "kvm" | |
libvirt.graphics_type = "spice" | |
libvirt.nic_model_type = "virtio" | |
libvirt.sound_type = "ich6" | |
libvirt.video_type = "qxl" | |
libvirt.channel :type => 'spicevmc', :target_name => 'com.redhat.spice.0', :target_type => 'virtio' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
compatible = "xlnx,zynqmp-zcu102-rev1.0\0xlnx,zynqmp-zcu102\0xlnx,zynqmp"; | |
#address-cells = <0x02>; | |
#size-cells = <0x02>; | |
model = "ZynqMP ZCU102 Rev1.0"; | |
cpus { | |
#address-cells = <0x01>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import adi | |
iio_uri = "ip:10.48.65.153" | |
class LLDR(adi.rx_tx.rx_tx_def): | |
_complex_data = False | |
_control_device_name = "ad3552r" | |
_tx_data_device_name = "ad3552r" | |
_rx_data_device_name = "ltc2387" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] | |
[ 0.000000] Linux version 5.10.0-98074-g1c108761fdba (jenkins@romlxbuild1.adlk.analog.com) (aarch64-xilinx-linux-gcc.real (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.0.20200730) #5305 SMP Tue Mar 8 07:26:49 GMT 2022 | |
[ 0.000000] Machine model: ZynqMP ZCU102 Rev1.0 | |
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8') | |
[ 0.000000] printk: bootconsole [cdns0] enabled | |
[ 0.000000] efi: UEFI not found. | |
[ 0.000000] cma: Reserved 256 MiB at 0x0000000070000000 | |
[ 0.000000] Zone ranges: | |
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff] | |
[ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000ffffffff] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright (C) 2021 Analog Devices, Inc. | |
# Author: Travis Collins <travis.collins@analog.com> | |
# | |
# Licensed under the GPL-2. | |
import sys | |
try: | |
import iio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% About definelibm2k.mlx | |
% This file defines the MATLAB interface to the library |libm2k|. | |
% | |
% Commented sections represent C++ functionality that MATLAB cannot automatically define. To include | |
% functionality, uncomment a section and provide values for <SHAPE>, <DIRECTION>, etc. For more | |
% information, see <matlab:helpview(fullfile(docroot,'matlab','helptargets.map'),'cpp_define_interface') Define MATLAB Interface for C++ Library>. | |
%% Setup. Do not edit this section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> build_library_macos | |
Error using build_library_macos (line 71) | |
Errors parsing header file. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__clang_version__" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__cpp_constexpr" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__cpp_inheriting_constructors" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> build_library_macos | |
Error using build_library_macos (line 71) | |
Errors parsing header file. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__clang_version__" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__cpp_constexpr" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of | |
"__cpp_inheriting_constructors" discarded. | |
/private/tmp/m2k/libm2k-matlab/libm2k/include/libm2k/m2kcalibration.hpp:64: predefined meaning of |
NewerOlder