This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <windows.h> | |
| #include "ps5000aApi.h" | |
| #include <zmq.h> | |
| #define BUFFER_SIZE 8192 | |
| #define RING_SIZE 256 |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| if [ -z "$1" ] | |
| then | |
| echo "Usage: $0 rru-rf-fw.bin" | |
| exit 1 | |
| fi | |
| #BOOT0 |
This file contains hidden or 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
| clear; | |
| clc; | |
| % load data | |
| X0 = csvread("lsf_0_2.csv"); % [N x 3] | |
| X1 = csvread("lsf_3_5.csv"); % [N x 3] | |
| X2 = csvread("lsf_6_9.csv"); % [N x 4] | |
| Xfull = [X0 X1 X2]; |
This file contains hidden or 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
| clear; | |
| clc; | |
| fs_target = 8000; | |
| frame_len = 160; | |
| hop = 80; | |
| lpc_order = 10; | |
| num_files = 0; | |
| wav_dir = "./wav_files"; |
This file contains hidden or 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 | |
| from gnuradio import gr | |
| from scipy.signal import firwin2, lfilter | |
| #granularity | |
| N = 1000 | |
| class firwin2_filter(gr.sync_block): | |
| def __init__(self, length=91, sinc_exp=1.0, sinc_gain=110.0, sinc_ratio=0.125): | |
| gr.sync_block.__init__(self, |
This file contains hidden or 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
| clear; clc; | |
| format long; | |
| d = fdesign.isinclp(0.95, 1.0, 0.5, 20); | |
| hd = design(d, 'SincFrequencyFactor', 0.265, 'SincPower', 27, 'SystemObject', true); | |
| b = hd.Numerator; | |
| %fvtool(hd); | |
| %length(hd.Numerator) |
This file contains hidden or 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
| """ | |
| Embedded Python Blocks: | |
| Each time this file is saved, GRC will instantiate the first class it finds | |
| to get ports and parameters of your block. The arguments to __init__ will | |
| be the parameters. All of them are required to have default values! | |
| """ | |
| import numpy as np | |
| from gnuradio import gr |
This file contains hidden or 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
| """ | |
| Embedded Python Blocks: | |
| Each time this file is saved, GRC will instantiate the first class it finds | |
| to get ports and parameters of your block. The arguments to __init__ will | |
| be the parameters. All of them are required to have default values! | |
| """ | |
| import numpy as np | |
| from gnuradio import gr |
This file contains hidden or 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
| """ | |
| Embedded Python Blocks: | |
| Each time this file is saved, GRC will instantiate the first class it finds | |
| to get ports and parameters of your block. The arguments to __init__ will | |
| be the parameters. All of them are required to have default values! | |
| """ | |
| import numpy as np | |
| from gnuradio import gr |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <math.h> | |
| #include <sys/ioctl.h> | |
| #include <linux/spi/spidev.h> |
NewerOlder