Owning Palette: Frequency Response VIs
Installed With: Control Design and Simulation Module
Calculates all the gain and phase margins, which result from the frequency response crossing at 0 decibels (magnitude) and –180 degrees (phase). You can use the CD All Margins VI only with single-input single-output (SISO) systems. You can use this polymorphic to calculate the gain and phase margins of state-space models, transfer function models, zero-pole-gain models, and stand-alone frequency response data. The data types you wire to the State-Space Model and Frequency Info inputs determine the polymorphic instance to use.
This VI converts the state-space and zero-pole-gain models into transfer function models before calculating their margins.
Use the pull-down menu to select an instance of this VI.
Place on the block diagram | Find on the Functions palette |
CD All Margins (State-Space)
State-Space Model contains a mathematical representation of and information about the system for which this VI determines gain and phase margins. | |||||||||||||
Frequency Range contains the frequency information of the model.
| |||||||||||||
Magnitude Scale specifies how to scale the magnitude of the frequency response.
| |||||||||||||
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. This VI or function runs normally only if no error occurred before this VI or function runs. 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 exception control to treat what is normally an error as no error or to treat a warning as an error.
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.
| |||||||||||||
Gain Margins returns information about the gain margins.
| |||||||||||||
Phase Margins returns information about the phase margins.
| |||||||||||||
Frequency Response Data returns the data before this VI parameterizes it.
To access the frequency response data, use the CD Get Frequency Response Data VI.
| |||||||||||||
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.
|
CD All Margins (Transfer Function)
Transfer Function Model contains a mathematical representation of and information about the system for which this VI determines gain and phase margins. | |||||||||||||
Frequency Range contains the frequency information of the model.
| |||||||||||||
Magnitude Scale specifies how to scale the magnitude of the frequency response.
| |||||||||||||
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. This VI or function runs normally only if no error occurred before this VI or function runs. 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 exception control to treat what is normally an error as no error or to treat a warning as an error.
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.
| |||||||||||||
Gain Margins returns information about the gain margins.
| |||||||||||||
Phase Margins returns information about the phase margins.
| |||||||||||||
Frequency Response Data returns the data before this VI parameterizes it.
To access the frequency response data, use the CD Get Frequency Response Data VI.
| |||||||||||||
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.
|
CD All Margins (Zero-Pole-Gain)
Zero-Pole-Gain Model contains a mathematical representation of and information about the system for which this VI determines gain and phase margins. | |||||||||||||
Frequency Range contains the frequency information of the model.
| |||||||||||||
Magnitude Scale specifies how to scale the magnitude of the frequency response.
| |||||||||||||
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. This VI or function runs normally only if no error occurred before this VI or function runs. 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 exception control to treat what is normally an error as no error or to treat a warning as an error.
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.
| |||||||||||||
Gain Margins returns information about the gain margins.
| |||||||||||||
Phase Margins returns information about the phase margins.
| |||||||||||||
Frequency Response Data returns the data before this VI parameterizes it.
To access the frequency response data, use the CD Get Frequency Response Data VI.
| |||||||||||||
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.
|
CD All Margins (Frequency Response Data)
Frequency Response specifies the frequency response for which this VI calculates the margins.
| |||||||||
Frequency Vector specifies information about the frequencies this VI uses to excite the model.
| |||||||||
Magnitude Scale specifies how to scale the magnitude of the frequency response.
| |||||||||
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. This VI or function runs normally only if no error occurred before this VI or function runs. 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 exception control to treat what is normally an error as no error or to treat a warning as an error.
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.
| |||||||||
Gain Margins returns information about the gain margins.
| |||||||||
Phase Margins returns information about the phase margins.
| |||||||||
Frequency Response Data returns the data before this VI parameterizes it.
To access the frequency response data, use the CD Get Frequency Response Data VI.
| |||||||||
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.
|
CD All Margins Details
This VI supports delays. Refer to the LabVIEW Control Design User Manual for more information about delays.