LLC2_API
Public Member Functions | Static Public Member Functions | Protected Member Functions
LL_ControlSystem Class Reference

abstract factory class - implementation detail hidden More...

#include <ll2.h>

Inheritance diagram for LL_ControlSystem:
ACQ LL_ControlSystemI

List of all members.

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_ControlSystemcreate (const char *_id)
 factory method
static LL_ControlSystemcreateFromFile (const char *config_file)
 factory method
static void closedown (LL_ControlSystem &sys)
 cleanup

Protected Member Functions

 LL_ControlSystem (const char *_id="LL_ControlSystem")

Detailed Description

abstract factory class - implementation detail hidden

Definition at line 374 of file ll2.h.


Constructor & Destructor Documentation

LL_ControlSystem::LL_ControlSystem ( const char *  _id = "LL_ControlSystem") [inline, protected]

Definition at line 377 of file ll2.h.


Member Function Documentation

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.

Parameters:
ao_values_initensure initial AO condition.
do_values_initensure initial DO condition.

Implemented in LL_ControlSystemI.

Referenced by main().

void LL_ControlSystem::closedown ( LL_ControlSystem sys) [static]

cleanup

Definition at line 1006 of file ll2.cpp.

Referenced by main(), and RtDone().

LL_ControlSystem & LL_ControlSystem::create ( const char *  _id) [static]

factory method

Parameters:
_idname to identify system

Definition at line 901 of file ll2.cpp.

Referenced by main().

LL_ControlSystem & LL_ControlSystem::createFromFile ( const char *  config_file) [static]

factory method

Parameters:
config_filenames xml state file that pre-defines the system.
Parameters:
config_filefactory method
init_filenames 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().

virtual int LL_ControlSystem::getOffset ( ACQ_Card card,
enum IO  io 
) [pure virtual]

return offset in client vector for <card> with IO type <io>.

Implemented in LL_ControlSystemI.

virtual int LL_ControlSystem::getSamples ( ) const [pure virtual]

returns samples to capture set in init().

Implemented in LL_ControlSystemI.

Referenced by main().

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]

Stop the capture.

Implemented in LL_ControlSystemI.

Referenced by main(), and RtDone().


The documentation for this class was generated from the following files: