|
ACQ2XX_API
|
implementation of api_test using API. More...
Go to the source code of this file.
Defines | |
| #define | RETERR(cmd) |
| #define | POST 1024000 |
Functions | |
| int | main (int argc, const char **argv) |
Variables | |
| int | acq200_debug |
| int | timeout |
| char * | device |
| int | do_shell |
| const char * | trigger_type = "lemo-standalone" |
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
opts: -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 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().
| int main | ( | int | argc, |
| const char ** | argv | ||
| ) |
Definition at line 57 of file api_test.cpp.
References acq200_debug, D3, device, do_shell, Acq2xx::getAvailableChannels(), Acq2xx::getInternalClock(), Acq2xx::getNumSamples(), Acq2xx::getSelectedChannels(), Acq2xx::getState(), Transport::getTransport(), iclock, opt_context, POST, R_FPGA, R_LEMO, R_PXI, RETERR, Acq2xx::selectChannels(), Acq2xx::setArm(), Acq2xx::setInternalClock(), Acq2xx::setRoute(), Acq2xx::setSoftTriggeredMode(), Acq2xx::setTriggeredPostMode(), ST_STOP, timeout, toString(), and trigger_type.
| int acq200_debug |
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.
1.7.4