|
OpenWAM
|
#include <TPIDController.h>
Public Member Functions | |
| TPIDController (int i) | |
| ~TPIDController () | |
| double | Output (double Time) |
| void | LeeController (const char *FileWAM, fpos_t &filepos) |
| void | AsignaObjetos (TSensor **Sensor, TController **Controller) |
| void | LeeResultadosMedControlador (const char *FileWAM, fpos_t &filepos) |
| void | LeeResultadosInsControlador (const char *FileWAM, fpos_t &filepos) |
| void | CabeceraResultadosMedControlador (stringstream &medoutput) |
| void | CabeceraResultadosInsControlador (stringstream &insoutput) |
| void | ImprimeResultadosMedControlador (stringstream &medoutput) |
| void | ImprimeResultadosInsControlador (stringstream &insoutput) |
| void | IniciaMedias () |
| void | ResultadosMediosController () |
| void | AcumulaResultadosMediosController (double Actual) |
| void | ResultadosInstantController () |
Public Member Functions inherited from TController | |
| TController (nmControlMethod meth, int i) | |
| ~TController () | |
Additional Inherited Members | |
Protected Attributes inherited from TController | |
| std::vector< TSensor * > | FSensor |
| Array with the pointers of the sensor inputs. | |
| int | FNumSensors |
| Number of sensor input. | |
| iVector | FSensorID |
| Array with the ID of the sensor inputs. | |
| int | FControllerID |
| ID of this controller. | |
| nmControlMethod | FControl |
| Type of controller. | |
| stResMediosCtrl | FResMediosCtrl |
| Struct with the average results of the controllers. | |
| stResInstantCtrl | FResInstantCtrl |
| Struct with the average results of the controllers. | |
This object represents a PID controller
Definition at line 35 of file TPIDController.h.
| TPIDController::TPIDController | ( | int | i | ) |
| TPIDController::~TPIDController | ( | ) |
|
virtual |
Acumulate average results
| Actual | Current time |
Implements TController.
Definition at line 444 of file TPIDController.cpp.
References TController::FResMediosCtrl.
|
virtual |
Asign the sensor input and the setpoint controller
| Sensor | Array with sensor objects |
| Controller | Array with controller objects |
Implements TController.
Definition at line 165 of file TPIDController.cpp.
References TController::FSensor, and TController::FSensorID.
|
virtual |
Generate instantaneous results header
| insoutput | StringStream where the instantaneous results are stored |
Implements TController.
Definition at line 296 of file TPIDController.cpp.
References TController::FResInstantCtrl, and PutLabel().
|
virtual |
Generate average results header
| medoutput | StringStrems where the average results are stored |
Implements TController.
Definition at line 260 of file TPIDController.cpp.
References TController::FResMediosCtrl, and PutLabel().
|
virtual |
Print instantaneous results
| insoutput | StringStream where the instantaneous results are stored |
Implements TController.
Definition at line 360 of file TPIDController.cpp.
References TController::FResInstantCtrl.
|
virtual |
Print average results
| medoutput | StringStream where the average results are stored |
Implements TController.
Definition at line 331 of file TPIDController.cpp.
References TController::FResMediosCtrl.
|
virtual |
Initialize average results
Implements TController.
Definition at line 389 of file TPIDController.cpp.
References TController::FResMediosCtrl.
|
virtual |
Read the PID data
| FileWAM | Input data filename |
| filepos | Position within the input file |
Implements TController.
Definition at line 126 of file TPIDController.cpp.
References TController::FSensorID.
|
virtual |
Read the instantaneous results selected
| FileWAM | Input data filename |
| filepos | Position within the input file |
Implements TController.
Definition at line 217 of file TPIDController.cpp.
References TController::FResInstantCtrl.
|
virtual |
Read the average results selected
| FileWAM | Input data filename |
| filepos | Position within the input file |
Implements TController.
Definition at line 174 of file TPIDController.cpp.
References TController::FResMediosCtrl.
|
virtual |
Return the PID controller output
| Time | Current PID output |
Implements TController.
Definition at line 48 of file TPIDController.cpp.
References AcumulaResultadosMediosController(), TController::FSensor, and TController::Output().
|
virtual |
Calculate instanteneous results
Implements TController.
Definition at line 478 of file TPIDController.cpp.
References TController::FResInstantCtrl.
|
virtual |
Calculate average results
Implements TController.
Definition at line 408 of file TPIDController.cpp.
References TController::FResMediosCtrl.
1.8.17