qpidctrl
0.7.1
|
#include <qptc10device.h>
Public Slots | |
void | sendCommand (QString cmd) |
void | readoutInitial () |
void | readoutPolling () |
void | readoutTimeout () |
void | changeSetPoint (double setPoint) |
void | changeRampRate (double rate) |
void | changeProportional (double prop) |
void | changeIntegral (double integ) |
void | changeDerivative (double deriv) |
void | enable (bool on) |
void | loopEnable (bool on) |
bool | canAutoTune () |
void | autoTune () |
void | updateChannelList () |
void | onInputChannelChanged () |
void | onOutputChannelChanged () |
void | onGraphingTimeout () |
void | onLoggingTimeout () |
void | start () |
void | stop () |
void | ptc10test (QString cmd) |
![]() | |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
virtual void | readoutInitial ()=0 |
virtual void | readoutPolling ()=0 |
virtual void | readoutTimeout ()=0 |
virtual void | sendCommand (QString cmd)=0 |
virtual void | changeSetPoint (double setPoint)=0 |
virtual void | changeRampRate (double rate)=0 |
virtual void | changeProportional (double prop)=0 |
virtual void | changeIntegral (double integ)=0 |
virtual void | changeDerivative (double deriv)=0 |
virtual void | enable (bool on)=0 |
virtual void | loopEnable (bool on) |
virtual bool | canAutoTune ()=0 |
virtual void | autoTune ()=0 |
virtual void | readyRead () |
virtual void | onGraphingTimeout () |
virtual void | onLoggingTimeout () |
virtual void | start () |
virtual void | stop () |
virtual void | restart () |
virtual void | changeRunState (int state) |
virtual void | changePollingInterval (double interval) |
virtual void | changeTimeoutInterval (double interval) |
virtual void | changeGraphingInterval (double interval) |
virtual void | changeLoggingInterval (double interval) |
virtual void | write (QString cmd) |
virtual QString | readLine (int sz=0) |
virtual int | waitForReadyRead (int tmout=0) |
virtual int | bytesAvailable () |
virtual int | canReadLine () |
Public Member Functions | |
QPTC10Device (QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, QString deviceName) | |
virtual void | writeSettings (QSettings *set, QString section) |
virtual void | readSettings (QSettings *set, QString section) |
void | configurationDialog () |
![]() | |
QPidDevice (QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, int deviceType, QString deviceName, int pollIntervalMsec, int timeoutMsec) | |
virtual | ~QPidDevice () |
QPidControllerWPtr | controller () const |
double | cK2K (double cK) |
double | K2cK (double K) |
double | K2degC (double K) |
double | degC2K (double degC) |
void | updateConnected (double newConnected) |
void | updateTemperature (double newTemperature) |
void | updateRampPoint (double newRampPoint) |
void | updateOutputLevel (double newOutputLevel) |
void | resetTimeout () |
void | pushCommand (QPidDeviceCommandPtr cmd) |
void | issueCommand () |
void | completeCommand (QByteArray response) |
void | flushCommandQueue () |
int | slowly (int msec) |
QPidCommPortPtr | commPort () |
Public Attributes | |
QPidObjectNamer | m_ObjectNamer |
Properties | |
QString | channelList |
QcepStringList | channels |
QcepStringList | inputChannels |
QcepStringList | outputChannels |
QString | unitsList |
QcepStringList | channelUnits |
QcepDoubleList | channelValues |
int | inputChannel |
QString | inputUnits |
int | outputChannel |
QString | outputUnits |
![]() | |
int | deviceType |
QString | deviceTypeName |
QString | deviceLongTypeName |
QString | deviceName |
int | runState |
double | pollingInterval |
double | timeoutInterval |
Private Member Functions | |
void | queryProperty (QString qry, QcepDoubleProperty *property, double scale=1.0) |
void | queryProperty (QString qry, QcepBoolProperty *property) |
void | queryProperty (QString qry, QcepStringProperty *property) |
QString | sendQuery (QString cmd) |
void | parseChannelList (QString chans) |
void | parseUnitsList (QString chans) |
void | parseOutputValues (QString chans) |
QString | inputChannelName () |
QString | outputChannelName () |
QString | inputChannelUnits () |
QString | outputChannelUnits () |
Private Attributes | |
QPTC10DeviceDialogPtr | m_DeviceDialog |
Additional Inherited Members | |
![]() | |
enum | { NoDevice = 0, WatlowDevice = 1, PTC10Device = 2, LakeshoreDevice = 3, CryostreamDevice = 4, EurothermDevice = 5 } |
![]() | |
void | inputChannelChanged (QString name, QString units) |
void | outputChannelChanged (QString name, QString units) |
void | loggedChannelNames (QStringList names) |
void | loggedChannelValues (QcepDoubleList values) |
void | graphedChannelNames (QStringList names) |
void | graphedChannelValues (QcepDoubleList values) |
![]() | |
static QString | deviceTypeName (int typ) |
static QString | deviceLongTypeName (int typ) |
static int | deviceTypeCount () |
Definition at line 13 of file qptc10device.h.
|
explicit |
Definition at line 12 of file qptc10device.cpp.
References onInputChannelChanged(), and onOutputChannelChanged().
|
slot |
Definition at line 418 of file qptc10device.cpp.
|
slot |
Definition at line 413 of file qptc10device.cpp.
|
slot |
Definition at line 391 of file qptc10device.cpp.
|
slot |
Definition at line 387 of file qptc10device.cpp.
|
slot |
Definition at line 383 of file qptc10device.cpp.
|
slot |
Definition at line 378 of file qptc10device.cpp.
References outputChannelName(), and sendCommand().
|
slot |
|
virtual |
Implements QPidDevice.
Definition at line 70 of file qptc10device.cpp.
References m_DeviceDialog.
|
slot |
Definition at line 395 of file qptc10device.cpp.
References QPidDevice::printMessage(), and sendCommand().
|
private |
Definition at line 82 of file qptc10device.cpp.
Referenced by inputChannelUnits(), onInputChannelChanged(), and readoutPolling().
|
private |
Definition at line 96 of file qptc10device.cpp.
References inputChannelName().
Referenced by onInputChannelChanged().
|
slot |
Definition at line 404 of file qptc10device.cpp.
References outputChannelName(), QPidDevice::printMessage(), and sendCommand().
|
slot |
Definition at line 422 of file qptc10device.cpp.
References QPidDevice::controller(), and QPidDevice::graphedChannelValues().
|
slot |
Definition at line 46 of file qptc10device.cpp.
References QPidDevice::inputChannelChanged(), inputChannelName(), and inputChannelUnits().
Referenced by QPTC10Device(), readoutInitial(), and start().
|
slot |
Definition at line 451 of file qptc10device.cpp.
References QPidDevice::controller(), and QPidDevice::loggedChannelValues().
|
slot |
Definition at line 51 of file qptc10device.cpp.
References QPidDevice::outputChannelChanged(), outputChannelName(), and outputChannelUnits().
Referenced by QPTC10Device(), readoutInitial(), and start().
|
private |
Definition at line 89 of file qptc10device.cpp.
Referenced by changeRampRate(), changeSetPoint(), loopEnable(), onOutputChannelChanged(), outputChannelUnits(), and readoutPolling().
|
private |
Definition at line 107 of file qptc10device.cpp.
References outputChannelName().
Referenced by onOutputChannelChanged().
|
private |
Definition at line 181 of file qptc10device.cpp.
References channels, DEBUG_PTC10, QPidDevice::graphedChannelNames(), inputChannels, QPidDevice::loggedChannelNames(), outputChannels, QPidDevice::printMessage(), and sendQuery().
Referenced by readoutPolling(), and updateChannelList().
|
private |
Definition at line 269 of file qptc10device.cpp.
References DEBUG_PTC10, and QPidDevice::printMessage().
Referenced by readoutPolling().
|
private |
Definition at line 249 of file qptc10device.cpp.
References DEBUG_PTC10, and QPidDevice::printMessage().
Referenced by readoutPolling(), and updateChannelList().
|
slot |
Definition at line 480 of file qptc10device.cpp.
References QPidDevice::canReadLine(), QPidDevice::commPort(), QPidDevice::printMessage(), and QPidDevice::waitForReadyRead().
|
private |
Definition at line 285 of file qptc10device.cpp.
References DEBUG_PTC10, QPidDevice::printMessage(), and sendQuery().
Referenced by readoutPolling().
|
private |
Definition at line 298 of file qptc10device.cpp.
References DEBUG_PTC10, QPidDevice::printMessage(), and sendQuery().
|
private |
Definition at line 311 of file qptc10device.cpp.
References DEBUG_PTC10, QPidDevice::printMessage(), and sendQuery().
|
slot |
Definition at line 118 of file qptc10device.cpp.
References DEBUG_PTC10, onInputChannelChanged(), onOutputChannelChanged(), QPidDevice::printMessage(), sendCommand(), and updateChannelList().
|
slot |
Definition at line 135 of file qptc10device.cpp.
References QPidDevice::controller(), DEBUG_PTC10, inputChannelName(), outputChannelName(), parseChannelList(), parseOutputValues(), parseUnitsList(), QPidDevice::printMessage(), queryProperty(), and sendQuery().
|
slot |
Definition at line 174 of file qptc10device.cpp.
References QPidDevice::flushCommandQueue(), and QPidDevice::printMessage().
|
virtual |
Reimplemented from QPidDevice.
Definition at line 63 of file qptc10device.cpp.
References QPidDevice::readSettings().
|
slot |
Definition at line 357 of file qptc10device.cpp.
References QPidDevice::commPort(), DEBUG_PTC10, and QPidDevice::printMessage().
Referenced by changeRampRate(), changeSetPoint(), enable(), loopEnable(), and readoutInitial().
|
private |
Definition at line 324 of file qptc10device.cpp.
References QPidDevice::canReadLine(), QPidDevice::commPort(), DEBUG_PTC10, QPidDevice::printMessage(), and QPidDevice::waitForReadyRead().
Referenced by parseChannelList(), queryProperty(), readoutPolling(), and updateChannelList().
|
slot |
Definition at line 33 of file qptc10device.cpp.
References onInputChannelChanged(), onOutputChannelChanged(), and QPidDevice::start().
|
slot |
Definition at line 41 of file qptc10device.cpp.
References QPidDevice::stop().
|
slot |
Definition at line 232 of file qptc10device.cpp.
References QPidDevice::commPort(), parseChannelList(), parseUnitsList(), and sendQuery().
Referenced by readoutInitial().
|
virtual |
Reimplemented from QPidDevice.
Definition at line 56 of file qptc10device.cpp.
References QPidDevice::writeSettings().
|
private |
Definition at line 126 of file qptc10device.h.
Referenced by configurationDialog().
QPidObjectNamer QPTC10Device::m_ObjectNamer |
Definition at line 56 of file qptc10device.h.
|
readwrite |
Definition at line 77 of file qptc10device.h.
|
readwrite |
Definition at line 80 of file qptc10device.h.
Referenced by parseChannelList().
|
readwrite |
Definition at line 92 of file qptc10device.h.
|
readwrite |
Definition at line 95 of file qptc10device.h.
|
readwrite |
Definition at line 98 of file qptc10device.h.
|
readwrite |
Definition at line 83 of file qptc10device.h.
Referenced by parseChannelList().
|
readwrite |
Definition at line 101 of file qptc10device.h.
|
readwrite |
Definition at line 104 of file qptc10device.h.
|
readwrite |
Definition at line 86 of file qptc10device.h.
Referenced by parseChannelList().
|
readwrite |
Definition at line 107 of file qptc10device.h.
|
readwrite |
Definition at line 89 of file qptc10device.h.