|
DAQFlex Plugins
0.9.8
|
#include <daqflexanaloginput.h>


Public Member Functions | |
| DAQFlexAnalogInput (void) | |
| DAQFlexAnalogInput (DAQFlexCore &device, const Options &opts) | |
| virtual | ~DAQFlexAnalogInput (void) |
| virtual int | open (DAQFlexCore &daqflexdevice) |
| 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 | maxRanges (void) const |
| virtual double | unipolarRange (int index) const |
| virtual double | bipolarRange (int index) const |
| virtual int | prepareRead (InList &traces) |
| virtual int | startRead (QSemaphore *sp=0, QReadWriteLock *datamutex=0, QWaitCondition *datawait=0, QSemaphore *aosp=0) |
| virtual int | readData (void) |
| virtual int | convertData (void) |
| virtual int | stop (void) |
| virtual int | reset (void) |
| virtual bool | running (void) const |
| virtual void | take (const vector< AnalogInput * > &ais, const vector< AnalogOutput * > &aos, vector< int > &aiinx, vector< int > &aoinx, vector< bool > &airate, vector< bool > &aorate) |
Public Member Functions inherited from AnalogInput | |
| AnalogInput (void) | |
| AnalogInput (int aitype) | |
| AnalogInput (const string &deviceclass, int aitype=0) | |
| virtual | ~AnalogInput (void) |
| virtual int | open (const string &device) override |
| int | minGainIndex (bool unipolar) const |
| int | maxGainIndex (bool unipolar) const |
| int | gainIndex (bool unipolar, double maxvoltage) const |
| virtual int | testRead (InList &traces) |
| virtual void | model (InList &data, const vector< int > &aochannels, vector< float > &aovalues) |
| virtual void | addTraces (vector< TraceSpec > &traces, int deviceid) const |
| virtual int | matchTraces (InList &traces) const |
| int | analogInputType (void) const |
| Device (int type=MiscellaneousType) | |
| Device (const string &deviceclass, int type=MiscellaneousType) | |
| virtual | ~Device (void) |
| virtual const Options & | info (void) const |
| virtual const Options & | settings (void) const |
| int | deviceType (void) const |
| string | deviceTypeStr (void) const |
| string | deviceClass (void) const |
| string | deviceFile (void) const |
| string | deviceName (void) const |
| string | deviceVendor (void) const |
| string | deviceIdent (void) const |
| virtual void | setDeviceIdent (const string &ident) |
| virtual void | clearError (void) |
| virtual string | errorStr (void) const |
| void | setErrorStr (const string &strg) |
| void | addErrorStr (const string &strg) |
| void | setErrorStr (int errnum) |
| void | addErrorStr (int errnum) |
| virtual bool | success (void) const |
| virtual bool | failed (void) const |
| Options (void) | |
| Options (const Options &o) | |
| Options (const Options &o, int flags) | |
| Options (const string &name, const string &type, int flags, int style) | |
| Options (const Str &opttxt, const string &assignment=":=", const string &separator=",;") | |
| Options (const StrQueue &sq, const string &assignment=":=") | |
| Options (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0) | |
| virtual | ~Options (void) |
| Options & | operator= (const Options &o) |
| Options & | assign (const Options &o) |
| Options & | append (const Options &o) |
| Options & | add (const Options &o) |
| Options & | insert (const Options &o, const string &atname="") |
| Options & | assign (const Options &o, int flags) |
| Options & | copy (Options &o, int flags) |
| Options & | append (const Options &o, int flags) |
| Options & | add (const Options &o, int flags) |
| Options & | insert (const Options &o, int flags, const string &atname="") |
| Parameter * | assign (const string &name, const string &value) |
| Options * | parentSection (void) |
| const Options * | parentSection (void) const |
| void | setParentSection (Options *parentsection) |
| void | resetParents (void) |
| Options * | rootSection (void) |
| const Options * | rootSection (void) const |
| string | name (void) const |
| virtual void | setName (const string &name) |
| virtual void | setName (const string &name, const string &type) |
| string | type (void) const |
| void | setType (const string &type) |
| string | include (void) const |
| void | setInclude (const string &include) |
| void | setInclude (const string &url, const string &name) |
| int | flag (void) const |
| bool | flag (int selectflag) const |
| Options & | setFlag (int flag) |
| Options & | addFlag (int flag) |
| Options & | delFlag (int flag) |
| Options & | clearFlag (void) |
| int | style (void) const |
| Options & | setStyle (int style) |
| Options & | addStyle (int style) |
| Options & | delStyle (int style) |
| Options & | clearStyle (void) |
| bool | checkType (int mask) const |
| Str | warning (void) const |
| iterator | begin (void) |
| iterator | end (void) |
| const_iterator | begin (void) const |
| const_iterator | end (void) const |
| section_iterator | sectionsBegin (void) |
| section_iterator | sectionsEnd (void) |
| const_section_iterator | sectionsBegin (void) const |
| const_section_iterator | sectionsEnd (void) const |
| const_iterator | find (const string &pattern, int level=-1) const |
| iterator | find (const string &pattern, int level=-1) |
| const_iterator | rfind (const string &pattern, int level=-1) const |
| iterator | rfind (const string &pattern, int level=-1) |
| const_section_iterator | findSection (const string &pattern, int level=-1) const |
| section_iterator | findSection (const string &pattern, int level=-1) |
| const_section_iterator | rfindSection (const string &pattern, int level=-1) const |
| section_iterator | rfindSection (const string &pattern, int level=-1) |
| const Parameter & | operator[] (int i) const |
| Parameter & | operator[] (int i) |
| const Parameter & | operator[] (const string &name) const |
| Parameter & | operator[] (const string &name) |
| const Options & | section (int i) const |
| Options & | section (int i) |
| const Options & | section (const string &name) const |
| Options & | section (const string &name) |
| Str | request (const string &name) const |
| Parameter & | setRequest (const string &name, const string &request) |
| Parameter::ValueType | valueType (const string &name) const |
| Parameter & | setValueType (const string &name, Parameter::ValueType type) |
| int | flags (const string &name) const |
| bool | flags (const string &name, int flag) const |
| Parameter & | setFlags (const string &name, int flags) |
| Parameter & | addFlags (const string &name, int flags) |
| Parameter & | delFlags (const string &name, int flags) |
| Parameter & | clearFlags (const string &name) |
| bool | changed (const string &name) |
| int | style (const string &name) const |
| Parameter & | setStyle (const string &name, int style) |
| Parameter & | addStyle (const string &name, int style) |
| Parameter & | delStyle (const string &name, int style) |
| Str | format (const string &name) const |
| Parameter & | setFormat (const string &name, int width=0, int prec=-1, char fmt='g') |
| Parameter & | setFormat (const string &name, const string &format) |
| int | formatWidth (const string &name) const |
| int | size (const string &name) const |
| Parameter & | add (const Parameter &np) |
| Parameter & | insert (const Parameter &np, const string &atname="") |
| Parameter & | addText (const string &name, const string &request, const string &dflt, int flags=0, int style=0) |
| Parameter & | addText (const string &name, const string &dflt="", int flags=0, int style=0) |
| Parameter & | insertText (const string &name, const string &atname, const string &request, const string &dflt, int flags=0, int style=0) |
| Parameter & | insertText (const string &name, const string &atname="", const string &dflt="", int flags=0, int style=0) |
| Str | text (const string &name, int index, const string &dflt="", const string &format="", const string &unit="") const |
| Str | text (const string &name, const string &dflt="", const string &format="", const string &unit="") const |
| void | texts (const string &name, vector< string > &s, const string &format="", const string &unit="") const |
| Str | allText (const string &name, const string &dflt="", const string &format="", const string &unit="", const string &separator=", ") const |
| Parameter & | setText (const string &name, const string &strg) |
| Parameter & | setText (const string &name, const Parameter &p) |
| Parameter & | pushText (const string &name, const string &strg) |
| Str | defaultText (const string &name, const string &format="", const string &unit="") const |
| Parameter & | setDefaultText (const string &name, const string &dflt) |
| Parameter & | addSelection (const string &name, const string &request, const string &selection, int flags=0, int style=0) |
| Parameter & | addSelection (const string &name, const string &selection="", int flags=0, int style=0) |
| Parameter & | insertSelection (const string &name, const string &atname, const string &request, const string &selection, int flags=0, int style=0) |
| Parameter & | insertSelection (const string &name, const string &atname="", const string &selection="", int flags=0, int style=0) |
| Parameter & | selectText (const string &name, const string &strg, int add=0) |
| Parameter & | selectText (const string &name, int index) |
| int | index (const string &name) const |
| int | index (const string &name, const string &strg) const |
| Parameter & | addNumber (const string &name, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0) |
| Parameter & | addNumber (const string &name, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | addNumber (const string &name, double dflt, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | addNumber (const string &name, double dflt, const string &unit, int flags, int style=0) |
| Parameter & | addNumber (const string &name, double dflt, double error, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | addNumber (const string &name, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | insertNumber (const string &name, const string &atname, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0) |
| Parameter & | insertNumber (const string &name, const string &atname, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | insertNumber (const string &name, const string &atname, double dflt, const string &unit="", const string &format="", int flags=0, int style=0) |
| Parameter & | insertNumber (const string &name, const string &atname, const string &unit="", const string &format="", int flags=0, int style=0) |
| double | number (const string &name, double dflt=0.0, const string &unit="", int index=0) const |
| double | number (const string &name, const string &unit, double dflt=0.0, int index=0) const |
| double | number (const string &name, int index, double dflt=0.0, const string &unit="") const |
| double | number (const string &name, int index, const string &unit, double dflt=0.0) const |
| void | numbers (const string &name, vector< double > &n, const string &unit="") const |
| double | error (const string &name, const string &unit="", int index=0) const |
| double | error (const string &name, int index, const string &unit="") const |
| void | errors (const string &name, vector< double > &n, const string &unit="") const |
| Parameter & | setNumber (const string &name, double number, double error, const string &unit="") |
| Parameter & | setNumber (const string &name, double number, const string &unit="") |
| Parameter & | pushNumber (const string &name, double number, double error=-1.0, const string &unit="") |
| Parameter & | pushNumber (const string &name, double number, const string &unit) |
| Parameter & | setNumber (const string &name, const Parameter &p) |
| double | defaultNumber (const string &name, const string &unit="") const |
| Parameter & | setDefaultNumber (const string &name, double dflt, const string &unit="") |
| double | minimum (const string &name, const string &unit="") const |
| double | maximum (const string &name, const string &unit="") const |
| double | step (const string &name, const string &unit="") const |
| Parameter & | setStep (const string &name, double step, const string &unit="") |
| Parameter & | setMinMax (const string &name, double minimum=-MAXDOUBLE, double maximum=MAXDOUBLE, double step=1.0, const string &unit="") |
| Str | unit (const string &name) const |
| Str | outUnit (const string &name) const |
| Parameter & | setUnit (const string &name, const string &internunit, const string &outunit="") |
| Parameter & | setOutUnit (const string &name, const string &outputunit) |
| Parameter & | changeUnit (const string &name, const string &internunit) |
| Parameter & | addInteger (const string &name, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0) |
| Parameter & | addInteger (const string &name, long dflt, const string &unit="", int width=0, int flags=0, int style=0) |
| Parameter & | addInteger (const string &name, const string &unit="") |
| Parameter & | insertInteger (const string &name, const string &atname, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0) |
| Parameter & | insertInteger (const string &name, const string &atname, long dflt, const string &unit="", int width=0, int flags=0, int style=0) |
| Parameter & | insertInteger (const string &name, const string &atname, const string &unit="", int width=0, int flags=0, int style=0) |
| long | integer (const string &name, const string &unit="", long dflt=0, int index=0) const |
| long | integer (const string &name, int index, long dflt=0, const string &unit="") const |
| long | integer (const string &name, int index, const string &unit, long dflt=0) const |
| void | integers (const string &name, vector< long > &n, const string &unit="") const |
| void | integers (const string &name, vector< int > &n, const string &unit="") const |
| Parameter & | setInteger (const string &name, long number, long error, const string &unit="") |
| Parameter & | setInteger (const string &name, long number, const string &unit="") |
| Parameter & | pushInteger (const string &name, long number, long error, const string &unit="") |
| Parameter & | pushInteger (const string &name, long number, const string &unit="") |
| Parameter & | setInteger (const string &name, const Parameter &p) |
| long | defaultInteger (const string &name, const string &unit="") const |
| Parameter & | setDefaultInteger (const string &name, long dflt, const string &unit="") |
| Parameter & | setMinMax (const string &name, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="") |
| Parameter & | setMinMax (const string &name, int minimum, int maximum, int step=1, const string &unit="") |
| Parameter & | addBoolean (const string &name, const string &request, bool dflt, int flags=0, int style=0) |
| Parameter & | addBoolean (const char *name, const char *request, bool dflt, int flags=0, int style=0) |
| Parameter & | addBoolean (const string &name, bool dflt, int flags=0, int style=0) |
| Parameter & | addBoolean (const char *name, bool dflt, int flags=0, int style=0) |
| Parameter & | insertBoolean (const string &name, const string &atname="", const string &request="", bool dflt=false, int flags=0, int style=0) |
| Parameter & | insertBoolean (const string &name, const string &atname, int flags=0, int style=0) |
| bool | boolean (const string &name, bool dflt=false, int index=0) const |
| bool | boolean (const string &name, int index, bool dflt=false) const |
| void | booleans (const string &name, vector< bool > &n) const |
| Parameter & | setBoolean (const string &name, bool b) |
| Parameter & | setBoolean (const string &name, const Parameter &p) |
| bool | defaultBoolean (const string &name) const |
| Parameter & | setDefaultBoolean (const string &name, bool dflt) |
| Parameter & | addDate (const string &name, const string &request, int year=0, int month=0, int day=0, int flags=0, int style=0) |
| Parameter & | addDate (const string &name, int year, int month, int day, int flags=0, int style=0) |
| Parameter & | addDate (const string &name, int flags=0, int style=0) |
| Parameter & | insertDate (const string &name, const string &atname="", const string &request="", int year=0, int month=0, int day=0, int flags=0, int style=0) |
| Parameter & | insertDate (const string &name, const string &atname, int year=0, int month=0, int day=0, int flags=0, int style=0) |
| Parameter & | insertDate (const string &name, const string &atname, int flags=0, int style=0) |
| const Parameter & | date (const string &name, int index, int &year, int &month, int &day) const |
| Parameter & | setDate (const string &name, int year, int month, int day) |
| Parameter & | setDate (const string &name, const string &date) |
| Parameter & | setDate (const string &name, const struct tm &date) |
| Parameter & | setDate (const string &name, const time_t &time) |
| Parameter & | setCurrentDate (const string &name) |
| Parameter & | setDate (const string &name, const Parameter &p) |
| const Parameter & | defaultDate (const string &name, int index, int &year, int &month, int &day) const |
| Parameter & | setDefaultDate (const string &name, int year, int month, int day) |
| Parameter & | addTime (const string &name, const string &request, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0) |
| Parameter & | addTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0, int flags=0, int style=0) |
| Parameter & | addTime (const string &name, int flags=0, int style=0) |
| Parameter & | insertTime (const string &name, const string &atname="", const string &request="", int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0) |
| Parameter & | insertTime (const string &name, const string &atname, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0) |
| Parameter & | insertTime (const string &name, const string &atname, int flags=0, int style=0) |
| const Parameter & | time (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const |
| Parameter & | setTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0) |
| Parameter & | setTime (const string &name, const string &time) |
| Parameter & | setTime (const string &name, const struct tm &time) |
| Parameter & | setTime (const string &name, const time_t &time) |
| Parameter & | setCurrentTime (const string &name) |
| Parameter & | setTime (const string &name, const Parameter &p) |
| const Parameter & | defaultTime (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const |
| Parameter & | setDefaultTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0) |
| Options & | newSection (int level, const string &name, const string &type="", int flag=0, int style=0) |
| Options & | newSection (int level, const string &name, int flag, int style=0) |
| Options & | newSection (const string &name, const string &type="", int flag=0, int style=0) |
| Options & | newSection (const string &name, int flag, int style=0) |
| Options & | newSubSection (const string &name, const string &type="", int flag=0, int style=0) |
| Options & | newSubSection (const string &name, int flag, int style=0) |
| Options & | newSubSubSection (const string &name, const string &type="", int flag=0, int style=0) |
| Options & | newSubSubSection (const string &name, int flag, int style=0) |
| Options & | addSection (const string &name, const string &type="", int flag=0, int style=0) |
| Options & | addSection (const string &name, int flag, int style=0) |
| Options & | insertSection (const string &name, const string &atpattern, const string &type="", int flag=0, int style=0) |
| Options & | insertSection (const string &name, const string &atpattern, int flag, int style=0) |
| Options & | newSection (int level, const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSection (int level, const Options &opt, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSection (int level, const Options &opt, const string &name, int flag, int style=0) |
| Options & | newSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSection (const Options &opt, const string &name, int flag, int style=0) |
| Options & | newSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSubSection (const Options &opt, const string &name, int flag, int style=0) |
| Options & | newSubSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSubSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | newSubSubSection (const Options &opt, const string &name, int flag, int style=0) |
| Options & | addSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | addSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0) |
| Options & | addSection (const Options &opt, const string &name, int flag, int style=0) |
| Options & | insertSection (const Options &opt, int selectmask, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0) |
| Options & | insertSection (const Options &opt, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0) |
| Options & | insertSection (const Options &opt, const string &name, const string &atpattern, int flag, int style=0) |
| Options & | newSection (Options *opt, bool newparent=false) |
| Options & | addSection (Options *opt, bool newparent=false) |
| Options & | insertSection (Options *opt, const string &atpattern, bool newparent=false) |
| Options & | newSections (Options *opt, bool newparent=false) |
| void | endSection (void) |
| void | clearSections (void) |
| void | setSection (Options &opt) |
| void | lastSection (void) |
| int | up (void) |
| int | down (void) |
| Parameter & | setDefault (const string &name) |
| Options & | setDefaults (int flags=0) |
| Parameter & | setToDefault (const string &name) |
| Options & | setToDefaults (int flags=0) |
| Options & | erase (iterator p) |
| Options & | erase (section_iterator p) |
| Options & | erase (Options *s) |
| Options & | erase (const string &pattern) |
| Options & | erase (int selectflag) |
| Options & | pop (void) |
| Options & | popSection (void) |
| Options & | flatten (Options *root=0) |
| Options & | clear (bool revert=true) |
| int | size (void) const |
| int | size (int selectflag) const |
| bool | empty (void) const |
| int | parameterSize (void) const |
| int | parameterSize (int flags) const |
| int | sectionsSize (void) const |
| int | sectionsSize (int flags) const |
| bool | exist (const string &pattern) const |
| bool | existSection (const string &pattern) const |
| Options & | setFlags (int flags, int selectflag=0) |
| Options & | addFlags (int flags, int selectflag=0) |
| Options & | delFlags (int flags, int selectflag=0) |
| Options & | setValueTypeFlags (int flags, int typemask) |
| Options & | addValueTypeFlags (int flags, int typemask) |
| Options & | delValueTypeFlags (int flags, int typemask) |
| Options & | setStyles (int style, int selectflag=0) |
| Options & | addStyles (int style, int selectflag=0) |
| Options & | delStyles (int style, int selectflag=0) |
| int | styleSize (int style) const |
| Options & | setValueTypeStyles (int style, int typemask) |
| Options & | addValueTypeStyles (int style, int typemask) |
| Options & | delValueTypeStyles (int style, int typemask) |
| int | nameWidth (int selectmask=0, bool detailed=false, bool escape=false) const |
| string | save (int selectmask=0, int flags=0) const |
| ostream & | save (ostream &str, const string &start="", int selectmask=0, int flags=0, int width=-1) const |
| ostream & | save (ostream &str, const string &textformat, const string &numberformat, const string &boolformat="%i=%b", const string &dateformat="%i=%04Y-%02m-%02d", const string &timeformat="%i=%02H:%02M:%02S", const string §ionformat="%i", int selectmask=0, const string &start="") const |
| ostream & | saveXML (ostream &str, int selectmask=0, int flags=0, int level=0, int indent=4) const |
| Options & | read (const string &opttxt, int flag, const string &assignment=":=", const string &separator=",;", int *indent=0) |
| Options & | read (const string &opttxt, const string &assignment=":=", const string &separator=",;") |
| istream & | read (istream &str, int flag, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0) |
| istream & | read (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0) |
| Options & | read (const StrQueue &sq, int flag=0, const string &assignment=":=") |
| bool | read (const Parameter &p, int flag=0) |
| Options & | read (const Options &o, int flags=0, int flag=0) |
| bool | readAppend (const Parameter &p) |
| Options & | readAppend (const Options &o, int flags=0) |
| Options & | load (const Str &opttxt, const string &assignment=":=", const string &separator=",;", int *indent=0, int *indentspacing=0, int *level=0) |
| istream & | load (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0) |
| Options & | load (const StrQueue &sq, const string &assignment=":=") |
| virtual void | notify (void) |
| void | callNotifies (void) |
| bool | setNotify (bool notify=true) |
| bool | unsetNotify (void) |
| bool | notifying (void) const |
Protected Member Functions | |
| int | testReadDevice (InList &traces) |
| void | initOptions () override |
Protected Member Functions inherited from AnalogInput | |
| virtual int | testReadData (InList &traces) |
| void | setAnalogInputType (int aitype) |
| void | setReadSleep (unsigned long ms) |
| void | setInfo (void) |
| void | setSettings (const InList &traces, int readbuffer=0, int updatebuffer=0) |
| virtual void | startThread (QSemaphore *sp=0, QReadWriteLock *datamutex=0, QWaitCondition *datawait=0, bool error=false) |
| virtual void | run (void) |
| virtual void | stopRead (void) |
| void | setDeviceType (int type) |
| void | setDeviceClass (const string &deviceclass) |
| void | setDeviceFile (const string &devicefile) |
| void | setDeviceName (const string &devicename) |
| void | setDeviceVendor (const string &devicevendor) |
| void | addInfo (void) |
| void | lock (void) const |
| void | unlock (void) const |
| QMutex * | mutex (void) const |
Additional Inherited Members | |
Public Types inherited from AnalogInput | |
| enum | DeviceTypes |
| enum | SaveFlags |
| typedef deque< Parameter > ::iterator | iterator |
| typedef deque< Parameter > ::const_iterator | const_iterator |
| typedef deque< Options * > ::iterator | section_iterator |
| typedef deque< Options * > ::const_iterator | const_section_iterator |
Static Public Member Functions inherited from AnalogInput | |
| static int | deviceTypes (void) |
| static string | deviceTypeStr (int type) |
| static string | getErrorStr (int ern) |
| static double | floorLog10 (double v) |
| static double | floor10 (double v, double scale=1.0) |
| static double | ceil10 (double v, double scale=1.0) |
Static Public Attributes inherited from AnalogInput | |
| static const int | NotOpen |
| static const int | InvalidDevice |
| static const int | ReadError |
| static const int | WriteError |
| static const int | InvalidParam |
| static const int | NonDefault |
| static const long | TabSection |
Protected Attributes inherited from AnalogInput | |
| Options | Info |
| Options | Settings |
[AnalogInput] Interface for accessing analog input of a DAQFlex board from Measurement Computing.
| DAQFlexAnalogInput | ( | void | ) |
Create a new DAQFlexAnalogInput without opening a device.
References DAQFlexAnalogInput::initOptions().
| DAQFlexAnalogInput | ( | DAQFlexCore & | device, |
| const Options & | opts | ||
| ) |
Open the analog input driver specified by its device file device.
References AnalogInput::addBoolean().
|
virtual |
Stop analog input and close the daq driver.
References DAQFlexAnalogInput::close().
|
virtual |
Open analog input on DAQFlexCore device device.
References DAQFlexCore::aiFIFOSize(), AnalogInput::boolean(), DAQFlexCore::daqflexErrorStr(), DAQFlexCore::error(), DAQFlexCore::ErrorLibUSBIO, AnalogInput::Info, AnalogInput::InvalidDevice, DAQFlexAnalogInput::isOpen(), DAQFlexCore::isOpen(), AnalogInput::NotOpen, Str::number(), AnalogInput::ReadError, Str::right(), DAQFlexCore::sendMessage(), AnalogInput::setDeviceFile(), AnalogInput::setDeviceName(), AnalogInput::setDeviceVendor(), AnalogInput::setErrorStr(), AnalogInput::setInfo(), Str::size(), and DAQFlexCore::success().
Referenced by DAQFlexAnalogInput::open().
|
overridevirtual |
Open analog input on DAQFlexCore device device.
Reimplemented from AnalogInput.
References DAQFlexAnalogInput::open().
|
virtual |
Returns true if driver was succesfully opened.
Implements AnalogInput.
References DAQFlexCore::isOpen(), AnalogInput::lock(), and AnalogInput::unlock().
Referenced by DAQFlexAnalogInput::bits(), DAQFlexAnalogInput::channels(), DAQFlexAnalogInput::close(), DAQFlexAnalogInput::open(), DAQFlexAnalogInput::prepareRead(), DAQFlexAnalogInput::reset(), and DAQFlexAnalogInput::stop().
|
virtual |
Stop all activity and close the device.
Implements AnalogInput.
References AnalogInput::Info, DAQFlexAnalogInput::isOpen(), and DAQFlexAnalogInput::reset().
Referenced by DAQFlexAnalogInput::~DAQFlexAnalogInput().
|
virtual |
Number of analog input channels.
Implements AnalogInput.
References DAQFlexAnalogInput::isOpen(), and DAQFlexCore::maxAIChannels().
|
virtual |
Resolution in bits of analog input.
Implements AnalogInput.
References DAQFlexAnalogInput::isOpen(), log(), and DAQFlexCore::maxAIData().
|
virtual |
Maximum sampling rate in Hz of analog input.
Implements AnalogInput.
References DAQFlexCore::maxAIRate().
|
virtual |
Maximum number of analog input ranges.
Implements AnalogInput.
|
virtual |
Voltage range index in Volt for unipolar mode. If -1 is returned this range is not supported.
Implements AnalogInput.
|
virtual |
Voltage range index in Volt for bipolar mode. If -1 is returned this range is not supported.
Implements AnalogInput.
References AnalogInput::index().
|
virtual |
Prepare analog input of the input traces traces on the device. If an error ocurred in any trace, the corresponding errorflags in InData are set and a negative value is returned. This function assumes that traces successfully passed testRead(). The channels in traces are not sorted.
Implements AnalogInput.
References InList::addError(), InList::addErrorStr(), InList::failed(), DAQFlexCore::failed(), DAQFlexCore::inPacketSize(), DAQFlexAnalogInput::isOpen(), max(), DAQFlexCore::maxAIData(), AnalogInput::mutex(), AnalogInput::number(), DAQFlexCore::sendMessage(), DAQFlexCore::setAISampleRate(), InList::setDelay(), InList::setError(), InList::setReadTime(), AnalogInput::setSettings(), InList::setUpdateTime(), InList::size(), AnalogInput::size(), InList::success(), and AnalogInput::success().
|
virtual |
Start analog input of the input traces on the device after they were prepared by prepareRead(). If an error ocurred in any channel, the corresponding errorflags in the InData structure are filled and a negative value is returned. Also start possible pending acquisition on other devices that are known from take().
Implements AnalogInput.
References AnalogInput::mutex(), DAQFlexAnalogOutput::noMoreData(), DAQFlexAnalogOutput::prepared(), DAQFlexCore::sendCommand(), DAQFlexCore::sendCommands(), AnalogOutput::startThread(), AnalogInput::startThread(), and DAQFlexAnalogOutput::useAIRate().
|
virtual |
Read data from a running data acquisition. Returns the total number of read data values. If an error ocurred in any channel, the corresponding errorflags in the InList structure are filled and -2 is returned.
Implements AnalogInput.
References InList::addError(), InList::addErrorStr(), ceil(), DAQFlexCore::daqflexErrorStr(), DAQFlexCore::ErrorLibUSBBusy, DAQFlexCore::ErrorLibUSBNoDevice, DAQFlexCore::ErrorLibUSBOverflow, DAQFlexCore::ErrorLibUSBPipe, DAQFlexCore::ErrorLibUSBTimeout, DAQFlexCore::inPacketSize(), AnalogInput::mutex(), DAQFlexCore::readBulkTransfer(), DAQFlexCore::sendMessage(), InList::size(), and DAQFlexCore::Success.
|
virtual |
Convert data from and push them to the traces. Returns the number of new data values that were added to the traces (sum over all traces). If an error ocurred in any channel, the corresponding errorflags in the InList structure are filled and a negative value is returned.
Implements AnalogInput.
References AnalogInput::mutex(), and InList::size().
|
virtual |
Stop any running ananlog input activity, but preserve all so far read in data. The next call to readData() will return the data. Returns zero on success, otherwise one of the flags NotOpen, InvalidDevice, ReadError.
Implements AnalogInput.
References DAQFlexAnalogInput::isOpen(), AnalogInput::lock(), AnalogInput::NotOpen, DAQFlexCore::sendCommand(), DAQFlexCore::sendMessage(), AnalogInput::stopRead(), and AnalogInput::unlock().
|
virtual |
Clear any internal data buffers and reset the device. Assumes that analog input is already stopped. Returns zero on success, otherwise one of the flags NotOpen, InvalidDevice, ReadError.
Implements AnalogInput.
References DAQFlexCore::clearRead(), DAQFlexCore::inPacketSize(), DAQFlexAnalogInput::isOpen(), AnalogInput::mutex(), AnalogInput::NotOpen, DAQFlexCore::readBulkTransfer(), DAQFlexCore::sendCommand(), and DAQFlexCore::sendMessage().
Referenced by DAQFlexAnalogInput::close().
|
virtual |
True if the analog input driver is running.
Reimplemented from AnalogInput.
References AnalogInput::lock(), DAQFlexCore::sendMessage(), and AnalogInput::unlock().
|
virtual |
Check for every analog input and analog output device in ais and aos, respectively, whether it can be simultaneously started by startRead() from this device.
Reimplemented from AnalogInput.
References DAQFlexCore::aoFIFOSize(), AnalogInput::deviceFile(), and DAQFlexAnalogOutput::useAIRate().
|
protectedvirtual |
Device driver specific tests on the settings in sigs for each input channel. Before this function is called, the validity of the settings in sigs was already tested by testReadData(). This function should test whether the settings are really supported by the hardware. If an error ocurred in any trace, the corresponding errorflags in the InData are set and a negative value is returned. The channels in sigs are not sorted. This function is called by testRead().
Implements AnalogInput.
References InList::addError(), AnalogInput::gainIndex(), InList::setUnipolar(), and InList::size().
|
overrideprotectedvirtual |
Reimplemented from AnalogInput.
References AnalogInput::addBoolean().
Referenced by DAQFlexAnalogInput::DAQFlexAnalogInput().
1.8.6