qpidctrl  0.7.1
Public Slots | Public Member Functions | Public Attributes | Properties | Private Attributes | List of all members
QLakeshoreDevice Class Reference

#include <qlakeshoredevice.h>

Inheritance diagram for QLakeshoreDevice:
Inheritance graph

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)
 
bool canAutoTune ()
 
void autoTune ()
 
- Public Slots inherited from QPidDevice
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

 QLakeshoreDevice (QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, QString deviceName)
 
void configurationDialog ()
 
virtual void writeSettings (QSettings *set, QString section)
 
virtual void readSettings (QSettings *set, QString section)
 
void writeOutput (QString cmd)
 
- Public Member Functions inherited from QPidDevice
 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

int inputChannel
 
int outputChannel
 
- Properties inherited from QPidDevice
int deviceType
 
QString deviceTypeName
 
QString deviceLongTypeName
 
QString deviceName
 
int runState
 
double pollingInterval
 
double timeoutInterval
 

Private Attributes

QextSerialPort m_SerialPort
 
QLakeshoreDeviceDialogPtr m_DeviceDialog
 

Additional Inherited Members

- Public Types inherited from QPidDevice
enum  {
  NoDevice = 0, WatlowDevice = 1, PTC10Device = 2, LakeshoreDevice = 3,
  CryostreamDevice = 4, EurothermDevice = 5
}
 
- Signals inherited from QPidDevice
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 Public Member Functions inherited from QPidDevice
static QString deviceTypeName (int typ)
 
static QString deviceLongTypeName (int typ)
 
static int deviceTypeCount ()
 

Detailed Description

Definition at line 10 of file qlakeshoredevice.h.

Constructor & Destructor Documentation

QLakeshoreDevice::QLakeshoreDevice ( QPidControllerWPtr  ctrl,
QcepSettingsSaverWPtr  saver,
QString  deviceName 
)
explicit

Definition at line 4 of file qlakeshoredevice.cpp.

4  :
5  QPidDevice(ctrl, saver, LakeshoreDevice, deviceName, 1000, 2000),
6  m_ObjectNamer(this, "lakeshore"),
7  m_InputChannel(saver, this, "inputChannel", 1, "Input (Sensor) Channel (1=A, 2=B)"),
8  m_OutputChannel(saver, this, "outputChannel", 1, "Output (Control) Channel")
9 {
10 }
QPidObjectNamer m_ObjectNamer
QPidDevice(QPidControllerWPtr ctrl, QcepSettingsSaverWPtr saver, int deviceType, QString deviceName, int pollIntervalMsec, int timeoutMsec)
Definition: qpiddevice.cpp:9
QString deviceName
Definition: qpiddevice.h:133

Member Function Documentation

void QLakeshoreDevice::autoTune ( )
slot

Definition at line 83 of file qlakeshoredevice.cpp.

84 {
85 }
bool QLakeshoreDevice::canAutoTune ( )
slot

Definition at line 78 of file qlakeshoredevice.cpp.

79 {
80  return true;
81 }
void QLakeshoreDevice::changeDerivative ( double  deriv)
slot

Definition at line 70 of file qlakeshoredevice.cpp.

71 {
72 }
void QLakeshoreDevice::changeIntegral ( double  integ)
slot

Definition at line 66 of file qlakeshoredevice.cpp.

67 {
68 }
void QLakeshoreDevice::changeProportional ( double  prop)
slot

Definition at line 62 of file qlakeshoredevice.cpp.

63 {
64 }
void QLakeshoreDevice::changeRampRate ( double  rate)
slot

Definition at line 58 of file qlakeshoredevice.cpp.

59 {
60 }
void QLakeshoreDevice::changeSetPoint ( double  setPoint)
slot

Definition at line 54 of file qlakeshoredevice.cpp.

55 {
56 }
void QLakeshoreDevice::configurationDialog ( )
virtual

Implements QPidDevice.

Definition at line 38 of file qlakeshoredevice.cpp.

References m_DeviceDialog.

39 {
40  if (m_DeviceDialog == NULL) {
42  }
43 
44  if (m_DeviceDialog) {
45  m_DeviceDialog->show();
46  m_DeviceDialog->raise();
47  }
48 }
QLakeshoreDeviceDialogPtr m_DeviceDialog
QSharedPointer< QLakeshoreDeviceDialog > QLakeshoreDeviceDialogPtr
QSharedPointer< QLakeshoreDevice > QLakeshoreDevicePtr
void QLakeshoreDevice::enable ( bool  on)
slot

Definition at line 74 of file qlakeshoredevice.cpp.

75 {
76 }
void QLakeshoreDevice::readoutInitial ( )
slot

Definition at line 26 of file qlakeshoredevice.cpp.

27 {
28 }
void QLakeshoreDevice::readoutPolling ( )
slot

Definition at line 30 of file qlakeshoredevice.cpp.

31 {
32 }
void QLakeshoreDevice::readoutTimeout ( )
slot

Definition at line 34 of file qlakeshoredevice.cpp.

35 {
36 }
void QLakeshoreDevice::readSettings ( QSettings *  set,
QString  section 
)
virtual

Reimplemented from QPidDevice.

Definition at line 19 of file qlakeshoredevice.cpp.

References QPidDevice::readSettings().

20 {
21  QPidDevice::readSettings(set, section+"/lakeshore");
22 
23  QcepProperty::readSettings(this, &staticMetaObject, section+"/lakeshore", set);
24 }
virtual void readSettings(QSettings *set, QString section)
Definition: qpiddevice.cpp:375
void QLakeshoreDevice::sendCommand ( QString  cmd)
slot

Definition at line 50 of file qlakeshoredevice.cpp.

51 {
52 }
void QLakeshoreDevice::writeOutput ( QString  cmd)

Definition at line 87 of file qlakeshoredevice.cpp.

88 {
89 }
void QLakeshoreDevice::writeSettings ( QSettings *  set,
QString  section 
)
virtual

Reimplemented from QPidDevice.

Definition at line 12 of file qlakeshoredevice.cpp.

References QPidDevice::writeSettings().

13 {
14  QPidDevice::writeSettings(set, section+"/lakeshore");
15 
16  QcepProperty::writeSettings(this, &staticMetaObject, section+"/lakeshore", set);
17 }
virtual void writeSettings(QSettings *set, QString section)
Definition: qpiddevice.cpp:366

Member Data Documentation

QLakeshoreDeviceDialogPtr QLakeshoreDevice::m_DeviceDialog
private

Definition at line 50 of file qlakeshoredevice.h.

Referenced by configurationDialog().

QPidObjectNamer QLakeshoreDevice::m_ObjectNamer

Definition at line 40 of file qlakeshoredevice.h.

QextSerialPort QLakeshoreDevice::m_SerialPort
private

Definition at line 49 of file qlakeshoredevice.h.

Property Documentation

int QLakeshoreDevice::inputChannel
readwrite

Definition at line 42 of file qlakeshoredevice.h.

int QLakeshoreDevice::outputChannel
readwrite

Definition at line 45 of file qlakeshoredevice.h.


The documentation for this class was generated from the following files: