QXRD
0.11.16
|
#include <qxrdnidaqplugin.h>
Public Slots | |
void | printMessage (QString msg) |
void | setAnalogWaveform (QString chan, double rate, double wfm[], int size) |
void | setAnalogOutput (int chan, double val) |
double | getAnalogInput (int chan) |
void | triggerAnalogWaveform () |
void | pulseOutput () |
double | count (int chan, double time) |
int | configCounters (QStringList chans) |
QVector< double > | readCounters () |
QStringList | deviceNames () |
QString | deviceType (QString device) |
int | deviceIsSimulated (QString device) |
QStringList | deviceAIChannels (QString device) |
QStringList | deviceAOChannels (QString device) |
QStringList | deviceDIPorts (QString device) |
QStringList | deviceDILines (QString port) |
QStringList | deviceDOPorts (QString device) |
QStringList | deviceDOLines (QString port) |
QStringList | deviceCIChannels (QString device) |
QStringList | deviceCOChannels (QString device) |
double | getAnalogInput (QString channelName) |
void | setAnalogOutput (QString channelName, double value) |
void | setAnalogOutput (double value) |
virtual int | prepareContinuousInput (double sampleRate, double acquireDelay, double exposureTime, QStringList chans, QVector< double > minVals, QVector< double > maxVals) |
virtual int | countContinuousInput () |
virtual int | readContinuousInput () |
virtual QVector< double > | readContinuousInputChannel (int ch) |
virtual void | finishContinuousInput () |
Public Member Functions | |
QxrdNIDAQPlugin () | |
virtual | ~QxrdNIDAQPlugin () |
virtual void | setErrorOutput (QObject *errors) |
QString | name () const |
Public Member Functions inherited from QxrdNIDAQPluginInterface | |
virtual | ~QxrdNIDAQPluginInterface () |
virtual void | setAnalogWaveform (QString chan, double rate, double wfm[], int size)=0 |
virtual void | triggerAnalogWaveform ()=0 |
virtual void | pulseOutput ()=0 |
virtual QStringList | deviceNames ()=0 |
virtual QString | deviceType (QString device)=0 |
virtual int | deviceIsSimulated (QString device)=0 |
virtual QStringList | deviceAIChannels (QString device)=0 |
virtual QStringList | deviceAOChannels (QString device)=0 |
virtual QStringList | deviceDIPorts (QString device)=0 |
virtual QStringList | deviceDILines (QString port)=0 |
virtual QStringList | deviceDOPorts (QString device)=0 |
virtual QStringList | deviceDOLines (QString port)=0 |
virtual QStringList | deviceCIChannels (QString device)=0 |
virtual QStringList | deviceCOChannels (QString device)=0 |
virtual double | getAnalogInput (QString channelName)=0 |
virtual void | setAnalogOutput (QString channelName, double value)=0 |
virtual void | setAnalogOutput (double value)=0 |
virtual int | prepareContinuousInput (double sampleRate, double acquireDelay, double exposureTime, QStringList chans, QVector< double > minVals, QVector< double > maxVals)=0 |
virtual int | countContinuousInput ()=0 |
virtual int | readContinuousInput ()=0 |
virtual QVector< double > | readContinuousInputChannel (int ch)=0 |
virtual void | finishContinuousInput ()=0 |
Public Member Functions inherited from QxrdNamedPluginInterface | |
virtual | ~QxrdNamedPluginInterface () |
Private Member Functions | |
void | initTaskHandles () |
void | closeTaskHandles () |
void | errorCheck (const char *file, int line, int err) |
Private Attributes | |
QObject * | m_ErrorOutput |
QMutex | m_Mutex |
TaskHandle | m_AOTaskHandle |
TaskHandle | m_AITaskHandle |
TaskHandle | m_TrigAOTask |
TaskHandle | m_PulseTask |
TaskHandle | m_CountersTask |
int | m_NCounters |
QVector< double > | m_Counts |
double | m_SampleRate |
double | m_ExposureTime |
double | m_AcquireDelay |
int | m_NContinuousInputs |
int | m_NContinuousSamples |
int | m_NAIChannels |
int | m_NCIChannels |
TaskHandle | m_ContinuousAITask |
QVector< TaskHandle > | m_ContinuousCITasks |
QVector< int > | m_ContinuousFlags |
QVector< int > | m_ContinuousChans |
QVector< QVector< double > > | m_ContinuousInputData |
Definition at line 13 of file qxrdnidaqplugin.h.
QxrdNIDAQPlugin::QxrdNIDAQPlugin | ( | ) |
Definition at line 13 of file qxrdnidaqplugin.cpp.
|
virtual |
Definition at line 53 of file qxrdnidaqplugin.cpp.
References closeTaskHandles().
|
private |
Definition at line 128 of file qxrdnidaqplugin.cpp.
References m_AITaskHandle, m_AOTaskHandle, m_Mutex, and m_TrigAOTask.
Referenced by ~QxrdNIDAQPlugin().
|
slot |
Definition at line 436 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_CountersTask, m_Counts, and m_NCounters.
|
slot |
Definition at line 410 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, and m_Mutex.
Referenced by readContinuousInput().
|
virtualslot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
virtualslot |
Definition at line 715 of file qxrdnidaqplugin.cpp.
References m_ContinuousAITask, m_ContinuousChans, m_ContinuousCITasks, m_ContinuousFlags, m_NAIChannels, and m_NCIChannels.
Referenced by prepareContinuousInput().
|
slot |
Definition at line 236 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_AITaskHandle, and m_Mutex.
|
slot |
|
private |
Definition at line 98 of file qxrdnidaqplugin.cpp.
|
virtual |
Implements QxrdNamedPluginInterface.
Definition at line 64 of file qxrdnidaqplugin.cpp.
|
virtualslot |
Definition at line 497 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, finishContinuousInput(), m_AcquireDelay, m_ContinuousAITask, m_ContinuousChans, m_ContinuousCITasks, m_ContinuousFlags, m_ContinuousInputData, m_ExposureTime, m_NAIChannels, m_NCIChannels, m_NContinuousInputs, m_NContinuousSamples, m_SampleRate, and printMessage().
|
slot |
Definition at line 69 of file qxrdnidaqplugin.cpp.
References m_ErrorOutput.
Referenced by prepareContinuousInput().
|
slot |
Definition at line 387 of file qxrdnidaqplugin.cpp.
|
virtualslot |
Definition at line 623 of file qxrdnidaqplugin.cpp.
References count(), DAQmxErrChk, m_ContinuousAITask, m_ContinuousChans, m_ContinuousCITasks, m_ContinuousFlags, m_ContinuousInputData, m_NAIChannels, m_NCIChannels, m_NContinuousInputs, and m_NContinuousSamples.
|
virtualslot |
Definition at line 710 of file qxrdnidaqplugin.cpp.
References m_ContinuousInputData.
|
slot |
Definition at line 474 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_CountersTask, m_Counts, and m_NCounters.
|
slot |
Definition at line 263 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_AOTaskHandle, and m_Mutex.
|
slot |
Definition at line 289 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_AOTaskHandle, and m_Mutex.
|
slot |
|
slot |
Definition at line 314 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_AOTaskHandle, and m_Mutex.
|
virtual |
Implements QxrdNIDAQPluginInterface.
Definition at line 59 of file qxrdnidaqplugin.cpp.
References m_ErrorOutput.
|
slot |
Definition at line 350 of file qxrdnidaqplugin.cpp.
References DAQmxErrChk, m_AOTaskHandle, and m_Mutex.
|
private |
Definition at line 87 of file qxrdnidaqplugin.h.
Referenced by prepareContinuousInput().
|
private |
Definition at line 78 of file qxrdnidaqplugin.h.
Referenced by closeTaskHandles(), and getAnalogInput().
|
private |
Definition at line 77 of file qxrdnidaqplugin.h.
Referenced by closeTaskHandles(), setAnalogOutput(), setAnalogWaveform(), and triggerAnalogWaveform().
|
private |
Definition at line 94 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 97 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 95 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 96 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 99 of file qxrdnidaqplugin.h.
Referenced by prepareContinuousInput(), readContinuousInput(), and readContinuousInputChannel().
|
private |
Definition at line 81 of file qxrdnidaqplugin.h.
Referenced by configCounters(), and readCounters().
|
private |
Definition at line 83 of file qxrdnidaqplugin.h.
Referenced by configCounters(), and readCounters().
|
private |
Definition at line 75 of file qxrdnidaqplugin.h.
Referenced by errorCheck(), printMessage(), and setErrorOutput().
|
private |
Definition at line 86 of file qxrdnidaqplugin.h.
Referenced by prepareContinuousInput().
|
private |
Definition at line 76 of file qxrdnidaqplugin.h.
Referenced by closeTaskHandles(), count(), getAnalogInput(), setAnalogOutput(), setAnalogWaveform(), and triggerAnalogWaveform().
|
private |
Definition at line 92 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 93 of file qxrdnidaqplugin.h.
Referenced by finishContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 89 of file qxrdnidaqplugin.h.
Referenced by prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 90 of file qxrdnidaqplugin.h.
Referenced by countContinuousInput(), prepareContinuousInput(), and readContinuousInput().
|
private |
Definition at line 82 of file qxrdnidaqplugin.h.
Referenced by configCounters(), and readCounters().
|
private |
Definition at line 80 of file qxrdnidaqplugin.h.
|
private |
Definition at line 85 of file qxrdnidaqplugin.h.
Referenced by prepareContinuousInput().
|
private |
Definition at line 79 of file qxrdnidaqplugin.h.
Referenced by closeTaskHandles().