Defines | Functions | Variables
api_test.cpp File Reference

implementation of api_test using API. More...

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

Go to the source code of this file.


#define RETERR(cmd)
#define POST   1024000


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


int acq200_debug
int timeout
char * device
int do_shell
const char * trigger_type = "lemo-standalone"

Detailed Description

implementation of api_test using API.

exercise the methods of Acq2xx, first by setting properties, then run a capture. Then you can use acqread to look at the data

  -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 api_test.cpp.

Define Documentation

#define POST   1024000

Definition at line 52 of file api_test.cpp.

Referenced by main().

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

Definition at line 46 of file api_test.cpp.

Referenced by main().

Function Documentation

int main ( int  argc,
const char **  argv 

Variable Documentation

Definition at line 41 of file api_test.cpp.

char* device

Definition at line 43 of file api_test.cpp.

int do_shell

Definition at line 44 of file api_test.cpp.

int timeout

Definition at line 42 of file api_test.cpp.

const char* trigger_type = "lemo-standalone"

Definition at line 55 of file api_test.cpp.