ACQ2XX_API
Defines | Functions | Variables
acq196_api_test.cpp File Reference

start and monitor continuous capture using API. More...

#include <popt.h>
#include <signal.h>
#include "local.h"
#include "acq2xx_api.h"
#include "acq_transport.h"

Go to the source code of this file.

Defines

#define RETERR(cmd)
#define POST   1024000

Functions

void sigintHandler (int signum)
static void installSignalHandler (void)
int main (int argc, const char *argv[])

Variables

int acq200_debug
int timeout
char * device
int do_shell
const char * trigger_type = "lemo-standalone"
static int interrupted
static int iclock = 10000

Detailed Description

start and monitor continuous capture using API.

  opts:
Usage: acq196_api_test [OPTION...]
  -f, --device=STRING
  -b, --board=STRING
  -s, --shell=STRING
  -v, --verbose=INT
  --version
  -T, --trigger
  --trigger-type=STRING
  -t, --timeout=INT         timeout in seconds
  --iclock=INT              internal clock in Hz
Help options:
  -?, --help                Show this help message
  --device		    Example: ip-address eg 192.168.0.123, localhost:10010
  --usage                   Display brief usage message
  -T : use hard trigger 
  --trigger-type lemo-master : set.route in lemo out fpga pxi : chassis master
  --trigger-type pxi-slave   : set.route in pxi out fpga      : chassis slave
			       default: front panel lemo-standalone

Definition in file acq196_api_test.cpp.


Define Documentation

#define POST   1024000

Definition at line 69 of file acq196_api_test.cpp.

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

Definition at line 63 of file acq196_api_test.cpp.

Referenced by main().


Function Documentation

static void installSignalHandler ( void  ) [static]

Definition at line 81 of file acq196_api_test.cpp.

References sigintHandler().

Referenced by main().

int main ( int  argc,
const char *  argv[] 
)
void sigintHandler ( int  signum)

Definition at line 76 of file acq196_api_test.cpp.

References interrupted.

Referenced by installSignalHandler().


Variable Documentation

Definition at line 58 of file acq196_api_test.cpp.

Referenced by main(), processOpts(), and Quad::Quad().

char* device

Definition at line 60 of file acq196_api_test.cpp.

Referenced by main().

int do_shell

Definition at line 61 of file acq196_api_test.cpp.

Referenced by main().

int iclock = 10000 [static]

Definition at line 89 of file acq196_api_test.cpp.

Referenced by main().

int interrupted [static]

Definition at line 74 of file acq196_api_test.cpp.

Referenced by main(), and sigintHandler().

int timeout

Definition at line 59 of file acq196_api_test.cpp.

Referenced by main(), and signon().

const char* trigger_type = "lemo-standalone"

Definition at line 72 of file acq196_api_test.cpp.

Referenced by main().