pygenalizer.simplified (Beta)¶
cgenalyzer - genalyzer API header file
Copyright (C) 2022 Analog Devices, Inc.
Author: Srikanth Pagadarai
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- class genalyzer.simplified_beta.simplified_beta.GNConfig¶
Bases:
object
Configuration structure to handle library state
- class genalyzer.simplified_beta.simplified_beta.WaveformGen(npts: int, freq: int, code_fmt: int, res: int, v_ref_n: float, v_ref_p: float, v_min: float, v_max: float)¶
Bases:
object
Waveform data generation for transmit devices
- gen_cosine_wave()¶
Generate cosine wave data
- Returns:
Waveform as list of ints
- gen_pwm_wave(duty_cycle)¶
Generate pwm wave data
- Args:
duty_cycle
(float
): Duty cycle required. Must be in between 0 and 1.- Returns:
Waveform as list of ints
- gen_sine_wave()¶
Generate sine wave data
- Returns:
Waveform as list of ints
- gen_square_wave()¶
Generate square wave data
- Returns:
Waveform as list of ints
- gen_triangular_wave()¶
Generate triangular wave data
- Returns:
Waveform as list of ints
- property v_max¶
Upper required voltage limit
- property v_min¶
Lower required voltage limit
- genalyzer.simplified_beta.simplified_beta.config_code_format(code_format: int, c: GNConfig) None ¶
Configure code format.
- Args:
code_format
: code format (Offset binary, Twos complement)c
: GNConfig object
- genalyzer.simplified_beta.simplified_beta.config_fa(fixed_tone_freq: float, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_fa_auto(ssb_width: int, c: GNConfig | None = None)¶
- genalyzer.simplified_beta.simplified_beta.config_fftz(npts: int, qres: int, navg: int, nfft: int, win: int, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_gen_ramp(npts: int, ramp_start: int, ramp_stop: int, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_gen_tone(ttype: int, npts: int, sample_rate: float, num_tones: int, tone_freq: float, tone_ampl: float, tone_phase: float, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_histz_nla(npts: int, qres: int, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_quantize(npts: int, fsr: float, qres: int, qnoise: float, c: GNConfig | None = None) GNConfig ¶
- genalyzer.simplified_beta.simplified_beta.config_set_sample_rate(sample_rate: float, c: GNConfig) None ¶
Set sample rate.
- Args:
sample_rate
: Sample rate in Hzc
: GNConfig object
- genalyzer.simplified_beta.simplified_beta.fftz(in_qwfi: int, in_qwfq: int, c: GNConfig) List[float] ¶
- genalyzer.simplified_beta.simplified_beta.get_fa_results(fft_ilv: float, c: GNConfig) dict ¶
Get Fourier analysis results.
- Args:
fixed_tone_freq
: fixed tone frequencyc
: GNConfig object- Returns:
Results as dict