Relacs Core Library
0.9.8
|
#include <aosim.h>
Public Member Functions | |
AOSim (void) | |
~AOSim (void) | |
virtual int | open (const string &device) override |
virtual int | open (Device &device) override |
virtual bool | isOpen (void) const |
virtual void | close (void) |
virtual int | channels (void) const |
virtual int | bits (void) const |
virtual double | maxRate (void) const |
virtual int | directWrite (OutList &sigs) |
virtual int | prepareWrite (OutList &sigs) |
virtual int | convertData (OutList &sigs) |
virtual int | startWrite (QSemaphore *sp=0) |
virtual int | writeData (void) |
virtual int | stop (void) |
virtual int | reset (void) |
virtual Status | status (void) const |
virtual int | error (void) const |
virtual int | getAISyncDevice (const vector< AnalogInput * > &ais) const |
Public Member Functions inherited from AnalogOutput | |
AnalogOutput (void) | |
AnalogOutput (int aotype) | |
AnalogOutput (const string &deviceclass, int aotype=0) | |
virtual | ~AnalogOutput (void) |
double | delay (int channel) const |
void | setDelays (const vector< double > &delays) |
void | setDelay (double delay) |
double | externalReference (void) const |
void | setExternalReference (double extr) |
virtual int | testWrite (OutList &sigs) |
bool | running (void) const |
virtual long | index (void) const |
virtual bool | useAIRate (void) const |
virtual void | take (const vector< AnalogOutput * > &aos, vector< int > &aoinx, vector< bool > &aorate) |
virtual void | addTraces (vector< TraceSpec > &traces, int deviceid) const |
virtual int | matchTraces (vector< TraceSpec > &traces) const |
int | analogOutputType (void) const |
Static Public Attributes | |
static const int | SimAnalogOutputType = 1 |
Protected Member Functions | |
virtual int | testWriteDevice (OutList &sigs) |
void | initOptions () override |
Protected Member Functions inherited from AnalogOutput | |
virtual int | testWriteData (OutList &sigs) |
void | setAnalogOutputType (int aotype) |
void | setWriteSleep (unsigned long ms) |
void | setErrorStr (const string &strg) |
void | addErrorStr (const string &strg) |
void | setErrorStr (int errnum) |
void | addErrorStr (int errnum) |
void | setErrorStr (const OutList &sigs) |
void | addErrorStr (const OutList &sigs) |
void | setInfo (void) |
void | setSettings (const OutList &sigs, int writebuffer=0) |
virtual void | startThread (QSemaphore *sp=0, bool error=false) |
virtual void | run (void) |
virtual void | stopWrite (void) |
Additional Inherited Members | |
Public Types inherited from AnalogOutput | |
enum | Status |
Implementation of AnalogOutput simulating an analog output device.
AOSim | ( | void | ) |
Create a new AOSim without opening a device.
References AOSim::initOptions().
~AOSim | ( | void | ) |
Stop analog output and close the daq driver.
|
overridevirtual |
Open the analog output device simulation
Reimplemented from AnalogOutput.
References ConfigClass::clear(), AnalogOutput::setExternalReference(), and AnalogOutput::setInfo().
|
overridevirtual |
Open the analog output device simulation.
Reimplemented from AnalogOutput.
References ConfigClass::clear(), AnalogOutput::setExternalReference(), and AnalogOutput::setInfo().
|
virtual |
Returns true.
Implements AnalogOutput.
|
virtual |
|
virtual |
Number of analog output channels.
Implements AnalogOutput.
|
virtual |
Resolution in bits of analog output.
Implements AnalogOutput.
|
virtual |
Maximum sampling rate in Hz of analog output.
Implements AnalogOutput.
|
virtual |
Directly writes from each signal in sigs the first data value to the data acquisition board.
Implements AnalogOutput.
References OutList::size().
|
virtual |
Prepare analog output of the output signals sigs on the device.
Implements AnalogOutput.
References OutList::addError(), OutData::AutoRange, DaqError::Busy, relacs::max(), relacs::min(), relacs::minMax(), DaqError::Overflow, AnalogOutput::Running, AnalogOutput::setSettings(), OutList::size(), AOSim::status(), OutList::success(), and DaqError::Underflow.
|
virtual |
Convert data of the output signals sigs.
References OutList::failed().
|
virtual |
Start analog output.
Implements AnalogOutput.
|
virtual |
Write data of the output signals to the analog output device.
Implements AnalogOutput.
|
virtual |
Stop the analog output device simulation.
Implements AnalogOutput.
|
virtual |
Reset the analog output device simulation.
Implements AnalogOutput.
References ConfigClass::clear().
|
virtual |
Implements AnalogOutput.
References AnalogOutput::Idle.
Referenced by AOSim::prepareWrite().
|
virtual |
get error status of the AI-device.
|
virtual |
Return the index of the analog input device ais from which the index() obtained.
Reimplemented from AnalogOutput.
|
protectedvirtual |
Test settings for analog output on the device for each output signal in sigs.
Implements AnalogOutput.
References OutList::failed(), and OutList::size().
|
overrideprotected |
Referenced by AOSim::AOSim().
|
static |
Device type id for simulated DAQ output devices.