#include <qeurothermdevice.h>
Definition at line 12 of file qeurothermdevice.h.
QEurothermDevice::QEurothermDevice |
( |
QPidControllerWPtr |
ctrl, |
|
|
QcepSettingsSaverWPtr |
saver, |
|
|
QString |
deviceName |
|
) |
| |
|
explicit |
Definition at line 8 of file qeurothermdevice.cpp.
QPidDevice(QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, int deviceType, QString deviceName, int pollIntervalMsec, int timeoutMsec)
QPidObjectNamer m_ObjectNamer
void QEurothermDevice::autoTune |
( |
| ) |
|
|
slot |
bool QEurothermDevice::canAutoTune |
( |
| ) |
|
|
slot |
void QEurothermDevice::changeDerivative |
( |
double |
deriv | ) |
|
|
slot |
void QEurothermDevice::changeIntegral |
( |
double |
integ | ) |
|
|
slot |
void QEurothermDevice::changeProportional |
( |
double |
prop | ) |
|
|
slot |
void QEurothermDevice::changeRampRate |
( |
double |
rate | ) |
|
|
slot |
void QEurothermDevice::changeSetPoint |
( |
double |
setPoint | ) |
|
|
slot |
void QEurothermDevice::configurationDialog |
( |
| ) |
|
|
virtual |
Implements QPidDevice.
Definition at line 42 of file qeurothermdevice.cpp.
References m_DeviceDialog.
QEurothermDeviceDialogPtr m_DeviceDialog
QSharedPointer< QEurothermDevice > QEurothermDevicePtr
QSharedPointer< QEurothermDeviceDialog > QEurothermDeviceDialogPtr
void QEurothermDevice::enable |
( |
bool |
on | ) |
|
|
slot |
QByteArray QEurothermDevice::encodeBiSyncPollCommand |
( |
int |
gid, |
|
|
int |
uid, |
|
|
int |
chan, |
|
|
QString |
mne |
|
) |
| |
|
protected |
Definition at line 224 of file qeurothermdevice.cpp.
Referenced by runTest1(), and test2Tick().
230 QString gidstr = tr(
"%1").arg(gid,1);
231 QString uidstr = tr(
"%1").arg(uid,1);
232 QString chanstr = tr(
"%1").arg(chan,1);
239 res.append(mne.left(2));
QByteArray QEurothermDevice::encodeBiSyncSelectCommand |
( |
int |
gid, |
|
|
int |
uid, |
|
|
int |
chan, |
|
|
QString |
mne, |
|
|
QString |
val |
|
) |
| |
|
protected |
Definition at line 247 of file qeurothermdevice.cpp.
Referenced by test2Tick().
253 QString gidstr = tr(
"%1").arg(gid,1);
254 QString uidstr = tr(
"%1").arg(uid,1);
255 QString chanstr = tr(
"%1").arg(chan,1);
264 res.append(mne.left(2));
270 for (
int i=6; i<res.length(); i++) {
274 res.append(sum & 0xff);
QByteArray QEurothermDevice::encodeModbusCommand |
( |
int |
addr, |
|
|
int |
cmd, |
|
|
QByteArray |
args |
|
) |
| |
|
protected |
QByteArray QEurothermDevice::invertByteArray |
( |
QByteArray |
arr | ) |
|
|
private |
void QEurothermDevice::readoutInitial |
( |
| ) |
|
|
slot |
void QEurothermDevice::readoutPolling |
( |
| ) |
|
|
slot |
void QEurothermDevice::readoutTimeout |
( |
| ) |
|
|
slot |
void QEurothermDevice::readSettings |
( |
QSettings * |
set, |
|
|
QString |
section |
|
) |
| |
|
virtual |
void QEurothermDevice::runTest1 |
( |
| ) |
|
|
slot |
void QEurothermDevice::runTest2 |
( |
| ) |
|
|
slot |
void QEurothermDevice::sendCommand |
( |
QString |
cmd | ) |
|
|
slot |
void QEurothermDevice::test2Tick |
( |
| ) |
|
|
slot |
Definition at line 179 of file qeurothermdevice.cpp.
References QPidDevice::commPort(), encodeBiSyncPollCommand(), encodeBiSyncSelectCommand(), invertByteArray(), m_Test2Count, m_Test2State, and QPidDevice::printMessage().
Referenced by runTest2().
185 QByteArray bisyncCommand;
200 printMessage(tr(
"Sent %1").arg(QString(bisyncCommand.toHex())));
206 int avail =
commPort()->bytesAvailable();
208 printMessage(tr(
"%1 bytes of input are available").arg(avail));
210 QByteArray res =
commPort()->readAll();
212 printMessage(tr(
"Data read - %1").arg(QString(res.toHex())));
QByteArray invertByteArray(QByteArray arr)
QPidCommPortPtr commPort()
QByteArray encodeBiSyncPollCommand(int gid, int uid, int chan, QString mne)
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
QByteArray encodeBiSyncSelectCommand(int gid, int uid, int chan, QString mne, QString val)
void QEurothermDevice::writeSettings |
( |
QSettings * |
set, |
|
|
QString |
section |
|
) |
| |
|
virtual |
QByteArray QEurothermDevice::m_Buffer |
|
private |
int QEurothermDevice::m_Test2Count |
|
private |
int QEurothermDevice::m_Test2State |
|
private |
QTimer QEurothermDevice::m_Test2Timer |
|
private |
The documentation for this class was generated from the following files: