ComediPulseTrainGenerator Class Reference

A class for generation of pulse trains using the comedi hardware abstraction layer. More...

#include <ComediPulseTrainGenerator.hpp>

List of all members.

Public Member Functions

 ComediPulseTrainGenerator (ComediDevice *cd, unsigned int subd, const std::string &name)
 Create a nameserved pulse train generator.
 ComediPulseTrainGenerator (ComediDevice *cd, unsigned int subd)
 Create an pulse train generator.
virtual bool pulseWidthSet (RTT::psecs picos)
virtual bool pulsePeriodSet (RTT::psecs picos)
virtual bool start ()
virtual bool stop ()

Protected Member Functions

void init ()
unsigned int psecs_to_timebase (RTT::psecs picos)
 Convert picoseconds to a multiple of the chosen Timebase.

Protected Attributes

ComediDevice_myCard
unsigned int _subDevice
RTT::psecs _pulse_width
RTT::psecs _pulse_period
RTT::psecs _clock_period
double _smallest_step
 Smallest step (related to the chosen timebase on the board) This value is not certain to be an integer, even in pico seconds.
bool _running

Detailed Description

A class for generation of pulse trains using the comedi hardware abstraction layer.

Tested with the NI6602 card. It will try to detect the NI6601 or NI6602. It needs to know the card to set the correct time base. Any other card is currently untested.

Todo:
subdevice locking

Definition at line 37 of file ComediPulseTrainGenerator.hpp.


Constructor & Destructor Documentation

ComediPulseTrainGenerator ( ComediDevice cd,
unsigned int  subd,
const std::string &  name 
)

Create a nameserved pulse train generator.

Parameters:
cd The comedi device your are using
subd The comedi subdevice where the COUNTER is situated.
name The name of the pulse train generator.

Definition at line 22 of file ComediPulseTrainGenerator.cpp.

ComediPulseTrainGenerator ( ComediDevice cd,
unsigned int  subd 
)

Create an pulse train generator.

Parameters:
cd The comedi device your are using
subd The comedi subdevice where the COUNTER is situated.

Definition at line 31 of file ComediPulseTrainGenerator.cpp.


Member Data Documentation

double _smallest_step [protected]

Smallest step (related to the chosen timebase on the board) This value is not certain to be an integer, even in pico seconds.

Definition at line 81 of file ComediPulseTrainGenerator.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 15:05:28 2010 for OrocosComponentLibrary by  doxygen 1.6.3