ACQ2XX_API
Data Structures | Defines | Functions | Variables
streamer.cpp File Reference

example application streams data from dt100d port. More...

#include <popt.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
#include "local.h"
#include "acq2xx_api.h"
#include "acq_transport.h"
#include "AcqType.h"
#include "Frame.h"
#include "DataStreamer.h"
#include "DirfileFrameHandler.h"

Go to the source code of this file.

Data Structures

class  FrameTimer

Defines

#define RETERR(cmd)
#define US   1000000

Functions

int main (int argc, const char **argv)

Variables

int acq200_debug
int timeout
char * device
int do_shell
static int show_mean = 1
static int format_hex
static int show_tags
static char * outbase
static int time_frames

Detailed Description

example application streams data from dt100d port.

Usage: streamer [OPTION...]
  -f, --device=STRING
  -b, --board=STRING
  -v, --verbose=INT
  --version
  -T, --showtags
  -x, --showhex
  -n, --nomean
  -m, --mean
  -o dirfile : output in DirFile format (use kst to view)
  --time-frames
Help options:
  -?, --help              Show this help message
  --usage                 Display brief usage message
Example usage:
[peter API]$  ./x86/bin/streamer -T -f 192.168.1.216 | cut -f 1-8 | head -n 5
         0	           0	-17067	-18570	     0	     0	-17009	-18589
         1	           0	-22293	-24254	     0	    -1	-22217	-24279
         2	           0	-22290	-24256	     0	    -1	-22216	-24282
         3	           0	-22290	-24257	     0	    -1	-22216	-24282
         4	           0	-22291	-24255	     0	    -1	-22217	-24281
 

Definition in file streamer.cpp.


Define Documentation

#define RETERR (   cmd)
Value:
if (STATUS_ERR(rc = cmd)) {             \
        err("failed: \"%s\" code:%d", #cmd, rc);        \
        return rc;      \
}

Definition at line 87 of file streamer.cpp.

#define US   1000000

Definition at line 101 of file streamer.cpp.


Function Documentation

int main ( int  argc,
const char **  argv 
)

Variable Documentation

Definition at line 82 of file streamer.cpp.

char* device

Definition at line 84 of file streamer.cpp.

int do_shell

Definition at line 85 of file streamer.cpp.

int format_hex [static]

Definition at line 95 of file streamer.cpp.

Referenced by DataStreamer::createMeanHandler(), and main().

char* outbase [static]

Definition at line 97 of file streamer.cpp.

Referenced by DirfileFrameHandler::create(), and main().

int show_mean = 1 [static]

Definition at line 94 of file streamer.cpp.

Referenced by main().

int show_tags [static]

Definition at line 96 of file streamer.cpp.

Referenced by main().

int time_frames [static]

Definition at line 99 of file streamer.cpp.

Referenced by main().

int timeout

Definition at line 83 of file streamer.cpp.