make_waves

Usage
usage: make_waves.py [-h] [--nchan NCHAN] [--len LEN] [--pulse PULSE] [--stagger STAGGER] [--amp AMP] [--ncycles NCYCLES] [--offset_per_channel OFFSET_PER_CHANNEL]
                     [--res RES] [--vmax VMAX] [--fxn FXN] [--root ROOT] [--merge MERGE] [--expand_to EXPAND_TO] [--soft_trigger SOFT_TRIGGER]
                     ops [ops ...]

Positional Arguments

ops

operations: one or more of generate store_files load_files store_raw load_raw scale_raw plot1 load_uut UUT continuous autorearm # for UUT, substitute UUT name

Named Arguments

--nchan

number of channels in set

Default: 16

--len

number of samples in set

Default: 100000

--pulse

length of pulse inside set

Default: 0

--stagger

length of pulse inside set

Default: 0

--amp

amplitude in volts

Default: 1.0

--ncycles

number of waveform cycles in set

Default: 8

--offset_per_channel

offset in volts *ch

Default: 0.0

--res

word size in bits

Default: 16

--vmax

full scale voltage (always symmetrical twos comp

Default: 10.0

--fxn

function to execute ramp or sin

Default: “ramp”

--root

offset in volts *ch

Default: “DATA”

--merge

merge data into single binary

Default: 1

--expand_to

expand to fit binary block size

Default: 16777216

--soft_trigger

auto soft trigger on load

Default: 1

Outline:

make_waves …

make a related set of waveforms, store as raw binary, one file per channel Created on 8 Jun 2021

@author: pgm

ramp_wave(args)[source]
sine_wave(args)[source]
sinc_wave(args)[source]
np_type(args)[source]
make_waves(args, iarg)[source]
store_files(args, iarg)[source]
scale_raw(args, iarg)[source]
store_raw(args, iarg)[source]
load_files(args, iarg)[source]
load_raw(args, iarg)[source]
plot1(args, iarg)[source]
exception ExitException[source]

Bases: BaseException

load_uut(args, iarg)[source]
is_param(args, iarg)[source]
get_parser()[source]
run_main(args)[source]