A class for generation of pulse trains using the comedi hardware abstraction layer. More...
#include <ComediPulseTrainGenerator.hpp>
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 |
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.
Definition at line 37 of file ComediPulseTrainGenerator.hpp.
ComediPulseTrainGenerator | ( | ComediDevice * | cd, | |
unsigned int | subd, | |||
const std::string & | name | |||
) |
Create a nameserved pulse train generator.
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.
cd | The comedi device your are using | |
subd | The comedi subdevice where the COUNTER is situated. |
Definition at line 31 of file ComediPulseTrainGenerator.cpp.
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.