|
ACQ2XX_API
|
demuxes (de-channelizes) acqXXX raw data. More...
#include <assert.h>#include <iostream>#include <map>#include <vector>#include <set>#include <stdlib.h>#include <libgen.h>#include <unistd.h>#include <errno.h>#include <fcntl.h>#include <sys/mman.h>#include <sys/stat.h>#include <sys/types.h>#include "popt.h"#include "local.h"#include "acq_demux.h"#include "AcqType.h"#include "AcqDataModel.h"#include "CommandBuffer.h"#include "Timer.h"#include "WorkingDir.h"#include "ProcessController.h"Go to the source code of this file.
Functions | |
| static poptContext | processOpts (int argc, const char **argv) |
| static string & | makeIdent (int argc, const char **argv) |
| int | main (int argc, const char **argv) |
Variables | |
| const char * | VERID = "acq_demux $Revision: 1.48 $ B1020" |
| char | channel_mask [80] |
| char | scan_list [16] |
| int | acq200_debug = 0 |
| int | nsamples |
| const char * | csm |
| const char * | acq_def_file = "acq_type.def" |
| const char * | dual_rate_def = 0 |
| NewEventSignature * | userStartTime |
demuxes (de-channelizes) acqXXX raw data.
Usage: acq_demux [options] RAWFILES Where RAWFILES are file names containing raw data. Typically tblock uploads 000, 001, 002 ...
options:
-d --debug level : set debugging/
-a --acq_type def-file : define ACQ type using def-file
-n --nsamples samples : preset number of samples in output
-T --sample_clock_ns : define inter sample interval in nano secs
-C --ChanneSpeedMask : multirate - ACQ132 only
-o --WorkingDiroutbase : save output in DirFile format RAWFILE.COOKED/
--dual-rate div1,div2
DirFile output is compatible with kst.
Typical def file: [pgm API]$ cat acq132.def ACQ=acq132 WORD_SIZE=2 AICHAN=32
Definition in file acq_demux.cpp.
| int main | ( | int | argc, |
| const char ** | argv | ||
| ) |
Definition at line 210 of file acq_demux.cpp.
References acq_def_file, AcqDataModel::addEventSignature(), channel_mask, ProcessController::create(), AcqDataModel::create(), AcqType::getAcqType(), makeIdent(), nsamples, opt_context, processOpts(), ProcessController::run(), scan_list, AcqDataModel::setIdent(), AcqDataModel::setMaxsamples(), and VERID.
| static string& makeIdent | ( | int | argc, |
| const char ** | argv | ||
| ) | [static] |
| static poptContext processOpts | ( | int | argc, |
| const char ** | argv | ||
| ) | [static] |
Definition at line 99 of file acq_demux.cpp.
References acq200_debug, acq_def_file, WorkingDir::cleanup, DumpDef::common_timebase, Args::config_fp, csm, DualRate::div0, DualRate::div1, dual_rate_def, Args::log_fp, Args::maxlen, nsamples, opt_context, WorkingDir::outbase, Args::post, Args::pre, Clock::sample_clock_ns, Args::startoff, AcqDataModel::wallclock_policy, and WCP_TIMED_AT_EVENT.
Referenced by main().
| int acq200_debug = 0 |
Definition at line 87 of file acq_demux.cpp.
| const char* acq_def_file = "acq_type.def" |
Definition at line 92 of file acq_demux.cpp.
Referenced by main(), and processOpts().
| char channel_mask[80] |
Definition at line 70 of file acq_demux.cpp.
Referenced by main().
| const char* csm |
Definition at line 91 of file acq_demux.cpp.
Referenced by processOpts().
| const char* dual_rate_def = 0 |
Definition at line 94 of file acq_demux.cpp.
Referenced by processOpts().
| int nsamples |
Definition at line 88 of file acq_demux.cpp.
Referenced by main(), processOpts(), and Acq2xx::readChannelVolts().
| char scan_list[16] |
Definition at line 71 of file acq_demux.cpp.
Referenced by main().
Definition at line 97 of file acq_demux.cpp.
| const char* VERID = "acq_demux $Revision: 1.48 $ B1020" |
Definition at line 68 of file acq_demux.cpp.
Referenced by main(), and makeIdent().
1.7.4