Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

CD Bode VI

LabVIEW 2012 Control Design and Simulation Module Help

Edition Date: June 2012

Part Number: 371894G-01

»View Product Info

Owning Palette: Frequency Response VIs

Requires: Control Design and Simulation Module

Produces the Bode magnitude and Bode phase plots of the system model on an XY graph. Wire data to the State-Space Model and Frequency Range inputs to determine the polymorphic instance to use or manually select the instance.

This VI converts state-space and zero-pole-gain models to transfer function models before calculating the frequency response.

Details  Example

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

CD Bode (Frequency Range, State-Space)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
State-Space Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Range contains the frequency information of the model.
Initial frequency is the minimum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Final frequency is the maximum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Minimum number of points is the minimum number of points this VI uses in calculating the frequency response and producing the plots. The default is 100 points.
Frequency Unit specifies the units of frequency, either in Hertz or radians/seconds, to use in calculating the frequency response and producing the plots.

0Hz
1rad/s (default)
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode (Frequency Range, Transfer Function)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Transfer Function Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Range contains the frequency information of the model.
Initial frequency is the minimum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Final frequency is the maximum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Minimum number of points is the minimum number of points this VI uses in calculating the frequency response and producing the plots. The default is 100 points.
Frequency Unit specifies the units of frequency, either in Hertz or radians/seconds, to use in calculating the frequency response and producing the plots.

0Hz
1rad/s (default)
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode (Frequency Range, Zero-Pole-Gain)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Zero-Pole-Gain Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Range contains the frequency information of the model.
Initial frequency is the minimum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Final frequency is the maximum frequency this VI uses in calculating the frequency response and producing the plots. The default is –1.
Minimum number of points is the minimum number of points this VI uses in calculating the frequency response and producing the plots. The default is 100 points.
Frequency Unit specifies the units of frequency, either in Hertz or radians/seconds, to use in calculating the frequency response and producing the plots.

0Hz
1rad/s (default)
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode (Frequency Vector, State-Space)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
State-Space Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Vector specifies information about the frequencies this VI uses to excite the model.
Frequency specifies the frequencies this VI uses to excite the model.
Frequency Unit specifies the unit of measurement of the Frequency array.

0Hz—Specifies that the frequency is measured in hertz.
1rad/s (default)—Specifies that the frequency is measured in radians per second.
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode (Frequency Vector, Transfer Function)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Transfer Function Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Vector specifies information about the frequencies this VI uses to excite the model.
Frequency specifies the frequencies this VI uses to excite the model.
Frequency Unit specifies the unit of measurement of the Frequency array.

0Hz—Specifies that the frequency is measured in hertz.
1rad/s (default)—Specifies that the frequency is measured in radians per second.
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode (Frequency Vector, Zero-Pole-Gain)

Phase Graph Reference is a reference to the Bode Phase plot on an XY graph. Phase Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Magnitude Graph Reference is a reference to the Bode Magnitude plot on an XY graph. Magnitude Graph Reference automatically configures the x-scale, y-scale, and legend properties. If you want to use the default settings or customize the settings for these properties, do not wire a value to this input.
Zero-Pole-Gain Model contains a mathematical representation of and information about the system of which this VI produces Bode plots.
Frequency Vector specifies information about the frequencies this VI uses to excite the model.
Frequency specifies the frequencies this VI uses to excite the model.
Frequency Unit specifies the unit of measurement of the Frequency array.

0Hz—Specifies that the frequency is measured in hertz.
1rad/s (default)—Specifies that the frequency is measured in radians per second.
Magnitude Scale specifies how to scale the magnitude of the frequency response.

0linear—Does not convert the magnitude of the frequency response to decibels.
1db (default)—Converts the magnitude of the frequency response to decibels.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Plots Index specifies which input and which output to plot. If you do not specify the input #, this VI plots all the inputs.
input # is the index number of the specific input to the system. This VI displays the response to this input on the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
output # is the index number of the specific output of the system that this VI displays in the Bode Magnitude and Bode Phase plots on XY graphs. The index is zero-based.
Bode Magnitude is a plot on an XY graph that plots the linear or decibel magnitude of the given model against a set of frequencies. The Plots Index array determines the plots on this XY graph.
Bode Phase is a plot on an XY graph that plots the phase (in degrees) of the model against a set of frequency values. The Plots Index array determines the plots on this XY graph.
Bode Data returns information about the Bode plot. To access the Bode Data, use the CD Get Frequency Response Data VI.
Frequency is a 1D-array of frequency values at which this VI calculates the magnitude and phase.
Magnitude is a 3D-array. The ith column in the nth page of the array is the magnitude of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be magnitudes of transfer functions between outputs y0 and y1 and the first input u0.
Phase is a 3D-array. The ith column in the nth page of the array is the phase of the transfer function between the ith output and the nth input. For example, the first two columns of the 0th page will be the phase of transfer functions between outputs y0 and y1 and the first input u0.
plot type returns the type of the plot.

0bode-magnitude
1bode-phase
2nichols
3nyquist
4singular values
5step
6impulse
7initial
8simulation
error out contains error information. This output provides standard error out functionality.
Frequency Info Out returns the frequency information of the model.

CD Bode Details

This VI supports delays. Refer to the LabVIEW Control Design User Manual for more information about delays.

Example

Refer to the CDEx Frequency Analysis VI in the labview\examples\Control and Simulation\Control Design\Frequency Analysis directory for an example of using the CD Bode VI.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit