LLC2_API
|
abstract factory class - implementation detail hidden More...
#include <ll2.h>
Public Member Functions | |
virtual int | addCard (ACQ196 *_acq196)=0 |
add ACQ196 card to system. | |
virtual int | addCard (AO32 *_ao32)=0 |
add AO32 card to system. | |
virtual void | print ()=0 |
print a summary of the system. | |
virtual void | init (int argc, const char *argv[])=0 |
initialise capture parameters. | |
virtual int | Arm (const short *ao_values_init=NO_VALUE, const unsigned *do_values_init=NO_VALUE)=0 |
Arm the capture with initial conditions. | |
virtual int | IO (const short *ao_values, const unsigned *do_values, short *ai_values, unsigned *di_values, unsigned *status)=0 |
Block and return on next sample. | |
virtual int | Stop ()=0 |
Stop the capture. | |
virtual int | getSamples () const =0 |
returns samples to capture set in init(). | |
virtual int | getOffset (ACQ_Card *card, enum IO io)=0 |
return offset in client vector for <card> with IO type <io>. | |
Static Public Member Functions | |
static LL_ControlSystem & | create (const char *_id) |
factory method | |
static LL_ControlSystem & | createFromFile (const char *config_file) |
factory method | |
static void | closedown (LL_ControlSystem &sys) |
cleanup | |
Protected Member Functions | |
LL_ControlSystem (const char *_id="LL_ControlSystem") |
LL_ControlSystem::LL_ControlSystem | ( | const char * | _id = "LL_ControlSystem" | ) | [inline, protected] |
virtual int LL_ControlSystem::addCard | ( | ACQ196 * | _acq196 | ) | [pure virtual] |
add ACQ196 card to system.
Implemented in LL_ControlSystemI.
Referenced by createFromFile(), and main().
virtual int LL_ControlSystem::addCard | ( | AO32 * | _ao32 | ) | [pure virtual] |
add AO32 card to system.
Implemented in LL_ControlSystemI.
virtual int LL_ControlSystem::Arm | ( | const short * | ao_values_init = NO_VALUE , |
const unsigned * | do_values_init = NO_VALUE |
||
) | [pure virtual] |
Arm the capture with initial conditions.
ao_values_init | ensure initial AO condition. |
do_values_init | ensure initial DO condition. |
Implemented in LL_ControlSystemI.
Referenced by main().
void LL_ControlSystem::closedown | ( | LL_ControlSystem & | sys | ) | [static] |
LL_ControlSystem & LL_ControlSystem::create | ( | const char * | _id | ) | [static] |
LL_ControlSystem & LL_ControlSystem::createFromFile | ( | const char * | config_file | ) | [static] |
factory method
config_file | names xml state file that pre-defines the system. |
config_file | factory method |
init_file | names xml state file that pre-defines the system. |
Definition at line 949 of file ll2.cpp.
References addCard(), AI, AO, XMLNode::createXMLString(), DI, DO, getAttribute(), XMLNode::getChildNode(), init(), XMLNode::isEmpty(), makeArgs(), XMLNode::nChildNode(), XMLNode::openFileHelper(), and stuff.
Referenced by DynamicSystem::instance(), and main().
return offset in client vector for <card> with IO type <io>.
Implemented in LL_ControlSystemI.
virtual int LL_ControlSystem::getSamples | ( | ) | const [pure virtual] |
virtual void LL_ControlSystem::init | ( | int | argc, |
const char * | argv[] | ||
) | [pure virtual] |
initialise capture parameters.
Implemented in LL_ControlSystemI.
Referenced by createFromFile(), main(), and RtSetup().
virtual int LL_ControlSystem::IO | ( | const short * | ao_values, |
const unsigned * | do_values, | ||
short * | ai_values, | ||
unsigned * | di_values, | ||
unsigned * | status | ||
) | [pure virtual] |
Block and return on next sample.
Sets outputs before blocking, returns inputs.
Implemented in LL_ControlSystemI.
Referenced by main().
virtual void LL_ControlSystem::print | ( | ) | [pure virtual] |
print a summary of the system.
xml output could be used to auto initialise application buffers
Reimplemented from ACQ.
Implemented in LL_ControlSystemI.
virtual int LL_ControlSystem::Stop | ( | ) | [pure virtual] |