qpidctrl
0.7.1
|
#include <qpidcontroller.h>
Public Types | |
enum | ControllerStatus { Stopping, Stopped, Starting, Running, Paused, Restarting, Error } |
Public Slots | |
QPidDevicePtr | defaultDevice () const |
QPidDevicePtr | getDevice (int dev) const |
void | setDefaultDevice (int dev) |
int | defaultDeviceNumber () const |
void | setDeviceName (int dev, QString name) |
void | configurationDialog (int dev) |
QScriptValue | device (int i) const |
void | printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime()) |
void | criticalMessage (QString msg) |
void | onDeviceReady () |
void | writeSettings () |
void | readSettings () |
void | loadSettings (QString filePath) |
void | saveSettings (QString filePath) |
QString | settingsFilePath () const |
void | setSettingsFilePath (QString filePath) |
void | debugChanged (int dbg) |
void | executeCommand (QString cmd) |
void | executeServerCommand (QPidServerSessionWPtr wksess, QString cmd) |
void | listSerialPorts () |
void | updateConnected (bool newConnected) |
void | updateTemperature (double newTemperature) |
void | updateRampPoint (double newRampPoint) |
void | updateOutputLevel (double newOutputLevel) |
void | sendCommand (QString cmd) |
void | autoTune () |
void | onLoggedChannelNames (QStringList names) |
void | onLoggedChannelValues (QcepDoubleList values) |
void | onGraphedChannelNames (QStringList names) |
void | onGraphedChannelValues (QcepDoubleList values) |
void | appendDevice (int deviceKind, QString deviceName) |
void | clearDevices () |
int | countDevices () |
void | deleteDevices (QVector< int > devList) |
void | startController () |
void | stopController () |
void | restartController () |
void | pauseController () |
void | resumeController () |
void | onDefaultDeviceChanged (int dev) |
void | startRampSoakCool () |
void | cancelRampSoakCool () |
Signals | |
void | deviceListChanged () |
void | historyDataChanged () |
void | executeCommandResult (QScriptValue val) |
Public Member Functions | |
QPidController (QObject *parent=0) | |
virtual | ~QPidController () |
void | start (QPidMainWindowWPtr window, QPidControllerWPtr ctrl) |
void | writeSettings (QPidSettings *settings) |
void | readSettings (QPidSettings *settings) |
QcepSettingsSaverPtr | saver () |
QPidServerPtr | server () |
QPidLoggerPtr | logger () |
Qt::CheckState | yChecked (int col) |
Qt::CheckState | y2Checked (int col) |
void | setYChecked (int col, Qt::CheckState state) |
void | setY2Checked (int col, Qt::CheckState state) |
QString | controllerStatusString (int status) |
Static Public Member Functions | |
static double | nan () |
Public Attributes | |
QList< QVector< double > > | m_PlottedValues |
int | m_SkippedColumns |
Properties | |
int | debug |
int | controllerStatus |
bool | connected |
int | defaultDeviceNumber |
double | temperature |
double | rampPoint |
double | setPoint |
double | rampRate |
double | heatSetPoint |
double | heatRampRate |
double | soakTime |
double | coolRampRate |
double | proportional |
double | integral |
double | derivative |
double | outputLevel |
bool | enabled |
bool | loopEnabled |
QStringList | columnNames |
int | selectionCounter |
int | graphLength |
double | graphInterval |
QByteArray | windowGeometry |
QByteArray | windowState |
QString | settingsPath |
Private Slots | |
void | onRampSoakTimer () |
Private Attributes | |
QPidObjectNamer | m_ObjectNamer |
QPidMainWindowWPtr | m_MainWindow |
QcepSettingsSaverPtr | m_Saver |
QPidScriptEnginePtr | m_ScriptEngine |
QVector< QPidDeviceThreadPtr > | m_DeviceThreads |
QVector< QPidDevicePtr > | m_Devices |
QPidServerThreadPtr | m_ServerThread |
QPidServerPtr | m_Server |
QPidLoggerThreadPtr | m_LoggerThread |
QPidLoggerPtr | m_Logger |
QString | m_SettingsFilePath |
QMap< QString, int > | m_ColumnSelections |
QTimer | m_RampSoakTimer |
Definition at line 23 of file qpidcontroller.h.
Enumerator | |
---|---|
Stopping | |
Stopped | |
Starting | |
Running | |
Paused | |
Restarting | |
Error |
Definition at line 114 of file qpidcontroller.h.
|
explicit |
Definition at line 19 of file qpidcontroller.cpp.
References onDefaultDeviceChanged().
|
virtual |
Definition at line 54 of file qpidcontroller.cpp.
|
slot |
Definition at line 449 of file qpidcontroller.cpp.
References QPidDeviceThread::createDevice(), deviceListChanged(), m_Devices, and m_DeviceThreads.
Referenced by readSettings().
|
slot |
|
slot |
Definition at line 584 of file qpidcontroller.cpp.
References m_RampSoakTimer, and onRampSoakTimer().
|
slot |
Definition at line 467 of file qpidcontroller.cpp.
References deviceListChanged(), m_Devices, and m_DeviceThreads.
Referenced by readSettings().
|
slot |
Definition at line 256 of file qpidcontroller.cpp.
References m_Devices.
QString QPidController::controllerStatusString | ( | int | status | ) |
Definition at line 177 of file qpidcontroller.cpp.
References Error, Paused, Restarting, Running, Starting, Stopped, and Stopping.
|
slot |
|
slot |
Definition at line 72 of file qpidcontroller.cpp.
References m_MainWindow.
|
slot |
Definition at line 119 of file qpidcontroller.cpp.
Referenced by start().
|
slot |
Definition at line 214 of file qpidcontroller.cpp.
References m_Devices.
Referenced by autoTune(), and sendCommand().
|
slot |
|
slot |
Definition at line 475 of file qpidcontroller.cpp.
References deviceListChanged(), m_Devices, and m_DeviceThreads.
|
slot |
|
signal |
Referenced by appendDevice(), clearDevices(), deleteDevices(), setDefaultDevice(), and setDeviceName().
|
slot |
Definition at line 530 of file qpidcontroller.cpp.
References m_ScriptEngine, and printMessage().
|
signal |
|
slot |
Definition at line 537 of file qpidcontroller.cpp.
References m_ScriptEngine.
|
slot |
Definition at line 219 of file qpidcontroller.cpp.
References m_Devices.
Referenced by onDefaultDeviceChanged().
|
signal |
|
slot |
Definition at line 548 of file qpidcontroller.cpp.
References printMessage().
|
slot |
Definition at line 417 of file qpidcontroller.cpp.
References readSettings(), and setSettingsFilePath().
Referenced by readSettings().
QPidLoggerPtr QPidController::logger | ( | ) |
Definition at line 496 of file qpidcontroller.cpp.
References m_Logger.
Referenced by onLoggedChannelNames(), onLoggedChannelValues(), and start().
|
static |
Definition at line 58 of file qpidcontroller.cpp.
Referenced by updateConnected().
|
slot |
Definition at line 240 of file qpidcontroller.cpp.
References getDevice(), and m_ScriptEngine.
Referenced by QPidController(), and readSettings().
|
slot |
Definition at line 110 of file qpidcontroller.cpp.
|
slot |
Definition at line 633 of file qpidcontroller.cpp.
References QPidMainWindow::graphChannelNames(), m_MainWindow, and m_PlottedValues.
Referenced by startController(), and stopController().
|
slot |
Definition at line 650 of file qpidcontroller.cpp.
References QPidMainWindow::graphChannelValues(), m_MainWindow, and m_PlottedValues.
Referenced by startController(), and stopController().
|
slot |
Definition at line 615 of file qpidcontroller.cpp.
References logger(), and m_Logger.
Referenced by startController(), and stopController().
|
slot |
Definition at line 624 of file qpidcontroller.cpp.
References logger(), and m_Logger.
Referenced by startController(), and stopController().
|
privateslot |
Definition at line 589 of file qpidcontroller.cpp.
References m_RampSoakTimer, and printMessage().
Referenced by cancelRampSoakCool(), and startRampSoakCool().
|
slot |
Definition at line 167 of file qpidcontroller.cpp.
References Paused.
|
slot |
Definition at line 63 of file qpidcontroller.cpp.
References m_MainWindow.
Referenced by executeCommand(), listSerialPorts(), onRampSoakTimer(), readSettings(), startRampSoakCool(), and writeSettings().
|
slot |
Definition at line 338 of file qpidcontroller.cpp.
References loadSettings().
Referenced by loadSettings(), and start().
void QPidController::readSettings | ( | QPidSettings * | settings | ) |
Definition at line 349 of file qpidcontroller.cpp.
References appendDevice(), clearDevices(), m_ColumnSelections, m_Devices, m_Logger, m_MainWindow, m_Server, onDefaultDeviceChanged(), printMessage(), and QPidMainWindow::restoreSplitterState().
|
slot |
Definition at line 158 of file qpidcontroller.cpp.
References m_Devices, Restarting, and Running.
|
slot |
Definition at line 172 of file qpidcontroller.cpp.
References Running.
QcepSettingsSaverPtr QPidController::saver | ( | ) |
|
slot |
Definition at line 426 of file qpidcontroller.cpp.
References setSettingsFilePath(), and writeSettings().
Referenced by writeSettings().
|
slot |
QPidServerPtr QPidController::server | ( | ) |
|
slot |
Definition at line 231 of file qpidcontroller.cpp.
References deviceListChanged(), and stopController().
|
slot |
Definition at line 245 of file qpidcontroller.cpp.
References deviceListChanged(), and m_Devices.
|
slot |
Definition at line 444 of file qpidcontroller.cpp.
References m_SettingsFilePath.
Referenced by loadSettings(), and saveSettings().
|
slot |
void QPidController::setY2Checked | ( | int | col, |
Qt::CheckState | state | ||
) |
Definition at line 713 of file qpidcontroller.cpp.
References m_ColumnSelections.
void QPidController::setYChecked | ( | int | col, |
Qt::CheckState | state | ||
) |
Definition at line 694 of file qpidcontroller.cpp.
References m_ColumnSelections.
void QPidController::start | ( | QPidMainWindowWPtr | window, |
QPidControllerWPtr | ctrl | ||
) |
Definition at line 81 of file qpidcontroller.cpp.
References debugChanged(), logger(), m_Logger, m_LoggerThread, m_MainWindow, m_Saver, m_ScriptEngine, m_Server, m_ServerThread, readSettings(), server(), and QPidMainWindow::start().
|
slot |
Definition at line 126 of file qpidcontroller.cpp.
References m_Devices, onGraphedChannelNames(), onGraphedChannelValues(), onLoggedChannelNames(), onLoggedChannelValues(), Running, and Starting.
|
slot |
Definition at line 566 of file qpidcontroller.cpp.
References m_RampSoakTimer, onRampSoakTimer(), printMessage(), and soakTime.
|
slot |
Definition at line 142 of file qpidcontroller.cpp.
References m_Devices, onGraphedChannelNames(), onGraphedChannelValues(), onLoggedChannelNames(), onLoggedChannelValues(), Stopped, and Stopping.
Referenced by setDefaultDevice().
|
slot |
|
slot |
Definition at line 524 of file qpidcontroller.cpp.
|
slot |
Definition at line 518 of file qpidcontroller.cpp.
|
slot |
Definition at line 512 of file qpidcontroller.cpp.
|
slot |
Definition at line 270 of file qpidcontroller.cpp.
References saveSettings().
Referenced by saveSettings().
void QPidController::writeSettings | ( | QPidSettings * | settings | ) |
Definition at line 281 of file qpidcontroller.cpp.
References m_ColumnSelections, m_Devices, m_Logger, m_MainWindow, m_Server, printMessage(), and QPidMainWindow::saveSplitterState().
Qt::CheckState QPidController::y2Checked | ( | int | col | ) |
Definition at line 685 of file qpidcontroller.cpp.
References m_ColumnSelections.
Qt::CheckState QPidController::yChecked | ( | int | col | ) |
Definition at line 676 of file qpidcontroller.cpp.
References m_ColumnSelections.
|
private |
Definition at line 216 of file qpidcontroller.h.
Referenced by readSettings(), setY2Checked(), setYChecked(), writeSettings(), y2Checked(), and yChecked().
|
private |
Definition at line 210 of file qpidcontroller.h.
Referenced by appendDevice(), clearDevices(), configurationDialog(), countDevices(), defaultDevice(), deleteDevices(), device(), getDevice(), readSettings(), restartController(), setDeviceName(), startController(), stopController(), and writeSettings().
|
private |
Definition at line 209 of file qpidcontroller.h.
Referenced by appendDevice(), clearDevices(), and deleteDevices().
|
private |
Definition at line 214 of file qpidcontroller.h.
Referenced by logger(), onLoggedChannelNames(), onLoggedChannelValues(), readSettings(), start(), and writeSettings().
|
private |
Definition at line 213 of file qpidcontroller.h.
Referenced by start().
|
private |
Definition at line 128 of file qpidcontroller.h.
Referenced by criticalMessage(), onGraphedChannelNames(), onGraphedChannelValues(), printMessage(), readSettings(), start(), and writeSettings().
|
private |
Definition at line 127 of file qpidcontroller.h.
QList<QVector<double> > QPidController::m_PlottedValues |
Definition at line 220 of file qpidcontroller.h.
Referenced by onGraphedChannelNames(), and onGraphedChannelValues().
|
private |
Definition at line 217 of file qpidcontroller.h.
Referenced by cancelRampSoakCool(), onRampSoakTimer(), and startRampSoakCool().
|
private |
Definition at line 129 of file qpidcontroller.h.
|
private |
Definition at line 208 of file qpidcontroller.h.
Referenced by device(), executeCommand(), executeServerCommand(), onDefaultDeviceChanged(), and start().
|
private |
Definition at line 212 of file qpidcontroller.h.
Referenced by readSettings(), server(), start(), and writeSettings().
|
private |
Definition at line 211 of file qpidcontroller.h.
Referenced by start().
|
private |
Definition at line 215 of file qpidcontroller.h.
Referenced by setSettingsFilePath(), and settingsFilePath().
int QPidController::m_SkippedColumns |
Definition at line 222 of file qpidcontroller.h.
|
readwrite |
Definition at line 186 of file qpidcontroller.h.
|
readwrite |
Definition at line 138 of file qpidcontroller.h.
|
readwrite |
Definition at line 135 of file qpidcontroller.h.
|
readwrite |
Definition at line 165 of file qpidcontroller.h.
|
readwrite |
Definition at line 132 of file qpidcontroller.h.
|
readwrite |
Definition at line 141 of file qpidcontroller.h.
|
readwrite |
Definition at line 174 of file qpidcontroller.h.
|
readwrite |
Definition at line 180 of file qpidcontroller.h.
|
readwrite |
Definition at line 195 of file qpidcontroller.h.
|
readwrite |
Definition at line 192 of file qpidcontroller.h.
|
readwrite |
Definition at line 159 of file qpidcontroller.h.
|
readwrite |
Definition at line 156 of file qpidcontroller.h.
|
readwrite |
Definition at line 171 of file qpidcontroller.h.
|
readwrite |
Definition at line 183 of file qpidcontroller.h.
|
readwrite |
Definition at line 177 of file qpidcontroller.h.
|
readwrite |
Definition at line 168 of file qpidcontroller.h.
|
readwrite |
Definition at line 147 of file qpidcontroller.h.
|
readwrite |
Definition at line 153 of file qpidcontroller.h.
|
readwrite |
Definition at line 189 of file qpidcontroller.h.
|
readwrite |
Definition at line 150 of file qpidcontroller.h.
|
readwrite |
Definition at line 204 of file qpidcontroller.h.
|
readwrite |
Definition at line 162 of file qpidcontroller.h.
Referenced by startRampSoakCool().
|
readwrite |
Definition at line 144 of file qpidcontroller.h.
|
readwrite |
Definition at line 198 of file qpidcontroller.h.
|
readwrite |
Definition at line 201 of file qpidcontroller.h.