|
ACQ2XX_API
|
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 |
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 POST 1024000 |
Definition at line 69 of file acq196_api_test.cpp.
| #define RETERR | ( | cmd | ) |
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().
| 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[] | ||
| ) |
Definition at line 91 of file acq196_api_test.cpp.
References acq200_debug, device, DI_NONE, do_shell, Acq2xx::getAvailableChannels(), Acq2xx::getInternalClock(), Acq2xx::getNumSamples(), Acq2xx::getSelectedChannels(), Acq2xx::getState(), Transport::getTransport(), iclock, installSignalHandler(), interrupted, opt_context, RETERR, Acq2xx::selectChannels(), Acq2xx::setAbort(), Acq2xx::setArm(), Acq2xx::setInternalClock(), Acq2xx::setPrePostMode(), ST_STOP, timeout, toString(), and trigger_type.
| void sigintHandler | ( | int | signum | ) |
Definition at line 76 of file acq196_api_test.cpp.
References interrupted.
Referenced by installSignalHandler().
| int acq200_debug |
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.
| const char* trigger_type = "lemo-standalone" |
Definition at line 72 of file acq196_api_test.cpp.
Referenced by main().
1.7.4