LLC2_API
Defines | Functions
example-dynamic.cpp File Reference

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

Detailed Description

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 Documentation

#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"

default config_file

Definition at line 57 of file example-dynamic.cpp.

Referenced by main().


Function Documentation

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