LLC2_API
|
example with dynamic system load. More...
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include "ll2.h"
#include "testharness.h"
Go to the source code of this file.
Defines | |
#define | LL2_SYSFILE "LL2_SYSFILE" |
environment variable defines config_file | |
#define | LL2_SYSFILE_DEFAULT "xml/example1.xml" |
default config_file | |
Functions | |
int | main (int argc, const char *argv[]) |
example program with dynamic system instantiation from config_file |
example with dynamic system load.
Example usage:
LL2_SYSFILE=xml/example1-krypton.xml LL_OUTPUTS=data/ai-ramps.dat ./example-dynamic -v 2 -n 10000 100 LL2_SYSFILE : xml system definition LL_OUTPUTS : data file for AO data. DO is alternating all 1's. ./example-dynamic : run this program -v 2 : verbose -n 10000 : for 10k samples 100 : ECM 100 eg 100usec cycle with 1MHz SYSCLK
Definition in file example-dynamic.cpp.
#define LL2_SYSFILE "LL2_SYSFILE" |
environment variable defines config_file
Definition at line 54 of file example-dynamic.cpp.
Referenced by main().
#define LL2_SYSFILE_DEFAULT "xml/example1.xml" |
int main | ( | int | argc, |
const char * | argv[] | ||
) |
example program with dynamic system instantiation from config_file
Definition at line 60 of file example-dynamic.cpp.
References LL_ControlSystem::Arm(), LL_ControlSystem::closedown(), LL_ControlSystem::createFromFile(), ACQ::getAI_count(), ACQ::getAO_count(), ACQ::getDI_count(), ACQ::getDO_count(), LL_ControlSystem::getSamples(), ACQ::getStatus_count(), LL_ControlSystem::init(), LL_ControlSystem::IO(), LL2_SYSFILE, LL2_SYSFILE_DEFAULT, SAMPLES, and LL_ControlSystem::Stop().