Use the pull-down menu to select an instance of this VI.

![]() |
State-Space Model specifies a state-space representation of the controller model for which this VI calculates the PID gains. | ||||||
![]() |
Sampling Specifications specifies the options relating to how this VI divides and samples the common K3 range.
Refer to the Details section for more information about these steps.
| ||||||
![]() |
Min Gain and Phase Margins specifies the optional performance constraints on the PID controller model. If you specify a value of 0 for either of these constraints, this VI does not attempt to verify that constraint. If you specify nonzero a value for either parameter, this VI returns PID gain values that satisfy the performance constraint(s).
| ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
Design PID Gains returns the PID gain values that are closest to the centroid, or average, of all intersecting planes. These gain values guarantee simultaneous closed-loop stability for all specified models. If you specified nonzero Min Gain and Phase Margins, these gain values also satisfy those performance constraints.
The Design PID Gains tuple is a subset of the Stable Set Interior Points. If the Design PID Gains is acceptable, you can choose an alternate tuple from the Stable Set Interior Points parameter. This parameter is a cluster of three one-dimensional arrays. The nth element of each array corresponds to the KP, KI, or KD value of a single set.
| ||||||
![]() |
Stable Set Boundary returns the boundary between the stable and unstable PID gain values. All gain values within the stable boundary are guaranteed to be stable for the PID controller.
|
||||||
![]() |
Stable Set Interior Points returns the set of gain values that lie within the Stable Set Boundary. All gain values within the stable boundary are guaranteed to be stable for the PID controller. Additionally, all gain values are guaranteed to meet any performance criteria you specified by using the Min Gain and Phase Margins parameter. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
Transfer Function Model specifies a transfer function representation of the controller model for which this VI calculates the PID gains. | ||||||
![]() |
Sampling Specifications specifies the options relating to how this VI divides and samples the common K3 range.
Refer to the Details section for more information about these steps.
| ||||||
![]() |
Min Gain and Phase Margins specifies the optional performance constraints on the PID controller model. If you specify a value of 0 for either of these constraints, this VI does not attempt to verify that constraint. If you specify nonzero a value for either parameter, this VI returns PID gain values that satisfy the performance constraint(s).
| ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
Design PID Gains returns the PID gain values that are closest to the centroid, or average, of all intersecting planes. These gain values guarantee simultaneous closed-loop stability for all specified models. If you specified nonzero Min Gain and Phase Margins, these gain values also satisfy those performance constraints.
The Design PID Gains tuple is a subset of the Stable Set Interior Points. If the Design PID Gains is acceptable, you can choose an alternate tuple from the Stable Set Interior Points parameter. This parameter is a cluster of three one-dimensional arrays. The nth element of each array corresponds to the KP, KI, or KD value of a single set.
| ||||||
![]() |
Stable Set Boundary returns the boundary between the stable and unstable PID gain values. All gain values within the stable boundary are guaranteed to be stable for the PID controller.
|
||||||
![]() |
Stable Set Interior Points returns the set of gain values that lie within the Stable Set Boundary. All gain values within the stable boundary are guaranteed to be stable for the PID controller. Additionally, all gain values are guaranteed to meet any performance criteria you specified by using the Min Gain and Phase Margins parameter. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
Zero-Pole-Gain Model specifies a zero-pole-gain representation of the controller model for which this VI calculates the PID gains. | ||||||
![]() |
Sampling Specifications specifies the options relating to how this VI divides and samples the common K3 range.
Refer to the Details section for more information about these steps.
| ||||||
![]() |
Min Gain and Phase Margins specifies the optional performance constraints on the PID controller model. If you specify a value of 0 for either of these constraints, this VI does not attempt to verify that constraint. If you specify nonzero a value for either parameter, this VI returns PID gain values that satisfy the performance constraint(s).
| ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
Design PID Gains returns the PID gain values that are closest to the centroid, or average, of all intersecting planes. These gain values guarantee simultaneous closed-loop stability for all specified models. If you specified nonzero Min Gain and Phase Margins, these gain values also satisfy those performance constraints.
The Design PID Gains tuple is a subset of the Stable Set Interior Points. If the Design PID Gains is acceptable, you can choose an alternate tuple from the Stable Set Interior Points parameter. This parameter is a cluster of three one-dimensional arrays. The nth element of each array corresponds to the KP, KI, or KD value of a single set.
| ||||||
![]() |
Stable Set Boundary returns the boundary between the stable and unstable PID gain values. All gain values within the stable boundary are guaranteed to be stable for the PID controller.
|
||||||
![]() |
Stable Set Interior Points returns the set of gain values that lie within the Stable Set Boundary. All gain values within the stable boundary are guaranteed to be stable for the PID controller. Additionally, all gain values are guaranteed to meet any performance criteria you specified by using the Min Gain and Phase Margins parameter. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|
This VI assumes the following system structure:
where
where
This VI executes the following steps:




![]() | Note This VI defines a rectangle around the polygon, takes samples of points within the entire rectangle, and keeps only those points that lie inside the slice. The number of discarded points depends on the aspect ratio of the polygon. Because this approach discards points that lie outside the slice, the number of points returned might not match the Num Search Points parameter exactly. |
The following figure shows an example of this step.
This VI discards points that lie outside the slice. These discarded points are marked with an X in the previous figure.
All points within the boundary, as shown in the previous figure, are stable.

Refer to the following resources for more information about the algorithms and methods this VI uses.