Class PidScaling
Parameters describing PID-controller parameters for scaling PidModel PidController
Inherited Members
Namespace: TimeSeriesAnalysis.Dynamic
Assembly: TimeSeriesAnalysis.dll
Syntax
public class PidScaling
Constructors
| Edit this page View SourcePidScaling()
Constructor
Declaration
public PidScaling()
PidScaling(double, double, double, double, bool)
Constructor
Declaration
public PidScaling(double y_min, double y_max, double u_min, double u_max, bool isKpScalingKpOn)
Parameters
| Type | Name | Description |
|---|---|---|
| double | y_min | |
| double | y_max | |
| double | u_min | |
| double | u_max | |
| bool | isKpScalingKpOn |
Fields
| Edit this page View SourcedoesSasPidScaleKp
Determines if the SAS scales Kp according to the scaling information in this object or not. Set this to match the reality in the SAS you are studying. For example: AIM "PIDcon": does not scale KP and TI AIM "PIDx" : DOES scale KP and TI
Declaration
public bool doesSasPidScaleKp
Field Value
| Type | Description |
|---|---|
| bool |
isDefault
If true, then all min/max are at their default value
Declaration
public bool isDefault
Field Value
| Type | Description |
|---|---|
| bool |
isEstimated
If true then these parameters have been guessed automatically from data
Declaration
public bool isEstimated
Field Value
| Type | Description |
|---|---|
| bool |
u_max
The maximum pid output(mainipulatd-) value
Declaration
public double u_max
Field Value
| Type | Description |
|---|---|
| double |
u_min
The minimum pid output(manipulated-) value
Declaration
public double u_min
Field Value
| Type | Description |
|---|---|
| double |
y_max
The maximum pid input(process-) value
Declaration
public double y_max
Field Value
| Type | Description |
|---|---|
| double |
y_min
the minimum pid input(process-) value
Declaration
public double y_min
Field Value
| Type | Description |
|---|---|
| double |
Methods
| Edit this page View SourceGetKpScalingFactor()
Get a scaling factor to convert and unscaled Kp
By defintion KpUnscaled = Kp / KpScalingFactor
Declaration
public double GetKpScalingFactor()
Returns
| Type | Description |
|---|---|
| double |
GetUScaleFactor()
Get the scaling factor of U
Declaration
public double GetUScaleFactor()
Returns
| Type | Description |
|---|---|
| double |
GetUmax()
Get the maximum U
Declaration
public double GetUmax()
Returns
| Type | Description |
|---|---|
| double |
GetUmin()
Get the minimum U
Declaration
public double GetUmin()
Returns
| Type | Description |
|---|---|
| double |
GetYScaleFactor()
Get the scaling factor for Y
Declaration
public double GetYScaleFactor()
Returns
| Type | Description |
|---|---|
| double |
GetYmax()
Get the maximum Y
Declaration
public double GetYmax()
Returns
| Type | Description |
|---|---|
| double |
GetYmin()
Get the minumum Y
Declaration
public double GetYmin()
Returns
| Type | Description |
|---|---|
| double |
IsDefault()
Ask if scaling is at defautl values
Declaration
public bool IsDefault()
Returns
| Type | Description |
|---|---|
| bool |
IsEstimated()
Ask if the scaling is estimated from data or given a priori
Declaration
public bool IsEstimated()
Returns
| Type | Description |
|---|---|
| bool |
IsKpScalingOn()
Ask if scaling of Kp is active
Declaration
public bool IsKpScalingOn()
Returns
| Type | Description |
|---|---|
| bool |
ScaleYValue(double)
Get the scaled version of an absolute y
Declaration
public double ScaleYValue(double y_abs)
Parameters
| Type | Name | Description |
|---|---|---|
| double | y_abs |
Returns
| Type | Description |
|---|---|
| double |
Set(double, double, double, double, bool)
Set scaling
Declaration
public void Set(double y_min, double y_max, double u_min, double u_max, bool isKpScalingKpOn)
Parameters
| Type | Name | Description |
|---|---|---|
| double | y_min | |
| double | y_max | |
| double | u_min | |
| double | u_max | |
| bool | isKpScalingKpOn |
SetDefault()
Set scaling to default
Declaration
public void SetDefault()
SetEstimatedUminUmax(double, double)
Set the estimated u_min and u_max (if it is not known, but guessed from data)
Declaration
public void SetEstimatedUminUmax(double u_min, double u_max)
Parameters
| Type | Name | Description |
|---|---|---|
| double | u_min | |
| double | u_max |
SetKpScalingOn(bool)
Turn scaling on or off
Declaration
public void SetKpScalingOn(bool isKpScalingKpOn)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isKpScalingKpOn |