cs_demux

Usage
usage: cs_demux.py [-h] [--plot PLOT] [--plot_facets PLOT_FACETS] [--save SAVE] [--transient_length TRANSIENT_LENGTH] [--data_file DATA_FILE] [--msb_direct MSB_DIRECT]
                   [--find_all_es FIND_ALL_ES] [--print_stats PRINT_STATS]

Named Arguments

--plot

Plot data

Default: 1

--plot_facets

No of facetsto plot

Default: 20

--save

Save data

Default: 0

--transient_length

transient length

Default: 8192

--data_file

Name ofdata file

Default: “./shot_data”

--msb_direct

new msb_direct feature, d2/d4 embedded in count d31

Default: 0

--find_all_es

find all ES markers

Default: 0

--print_stats

print burst statistics, 1:top/tail 2:all bursts

Default: 0

Outline:

A python script to demux the data from the cs system.

The data is supposed to come out in the following way:

CH01

CH02

CH03

CH04

INDEX

FACET

SAM COUNT

usec COUNT

short

short

short

short

long

long

long

long

Example:

Linux:

python cs_demux.py --data_file="/home/sean/PROJECTS/workspace/acq400_hapi-1/user_apps/acq400/acq1001_068/000001/0000"

Windows:

python .\cs_demux.py --plot_facets=4 --data_file="C:/acq2106_112/000001/0000"
isES(d)[source]
find_zero_index(args)[source]
find_all_es(args)[source]
extract_bursts(args)[source]
save_data(args, data)[source]
get_plot_timebase(args, data)[source]
plot_data(args, data)[source]
print_stats(args, data)[source]
isNewIndex_default(w1, w2)[source]
isNewIndex_msb_direct(w1, w2)[source]
run_main(args)[source]
get_parser()[source]