ACQ2XX_API
Functions | Variables
acq_demux.cpp File Reference

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
NewEventSignatureuserStartTime

Detailed Description

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.


Function Documentation

int main ( int  argc,
const char **  argv 
)
static string& makeIdent ( int  argc,
const char **  argv 
) [static]

Definition at line 192 of file acq_demux.cpp.

References VERID.

Referenced by main().

static poptContext processOpts ( int  argc,
const char **  argv 
) [static]

Variable Documentation

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().