AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
|
Go to the documentation of this file.
23 int getenv(
const char* key,
int def,
int (*cvt)(
const char* key))
25 const char* value =
getenv(key);
44 const char*
ui(
int argc,
char* argv[])
46 const char* config_file;
49 if ((key =
getenv(
"RTPRIO"))){
52 if ((key =
getenv(
"AFFINITY")) && strtol(key, 0, 0) != 0){
55 if ((key =
getenv(
"MAXPOLL")) && strtol(key, 0, 0) != 0){
60 config_file = argv[1];
62 fprintf(stderr,
"USAGE acqproc_th CONFIG_FILE NSAMPLES [SAMPLES_BUFFER]\n");
75 int main(
int argc,
char* argv[])
77 const char* config_file =
ui(argc, argv);
96 fprintf(stderr,
"ERROR:%d\n", error);
Models a Host Bus Adapter like AFHBA404.
int main(int argc, char *argv[])
acqproc global class interface definition.
static HBA & create(const char *json_def, int _maxsam)
HBA::Create() factory function.
const char * ui(int argc, char *argv[])
virtual void start_shot()
int dummy_first_loop
possible speed up by filling cache first loop
virtual void processSample(SystemInterface &systemInterface, int sample)
core run time function, processSample.
void setAffinity(unsigned cpu_mask)
Models interface with external PCS.
void dump_config()
output complete configuration with calculated offsets
int samples_buffer
number of samples in each VI buffer (default:1)
static SystemInterface & factory(const HBA &)
int getenv(const char *key, int def, int(*cvt)(const char *key))
int nsamples
samples to capture (default:2, typ 200000)