Adams Basic Package > Adams View > View Command Language > xy_plots > xy_plots bode magnitude_plot coefficient_input

xy_plots bode magnitude_plot coefficient_input

Allows you to define a Bode plot (phase, magnitude, or both, depending on the command) using coefficients.

Format:

 
xy_plots bode magnitude_plot coefficient_input
plot_name =
existing plot
page_name =
existing page
numerator_coefficients =
real
denominator_coefficients =
real
start_frequency =
real
end_frequency =
real
frequency_step =
real
log_samples =
integer
samples =
integer

Example:

 
xy_plots bode magnitude_plot coefficient_input &
plot_name =
plot_1 &
numerator_coefficients =
2.6 &
denominator_coefficients =
5.456 &
start_frequency =
1500 &
end_frequency =
3500 &
frequency_step =
125

Description:

 
Parameter
Value Type
Description
plot_name
Existing Plot
Specifies the name of the Bode plot to be updated.
page_name
Existing Page
Specifies the name of the Bode page that the plot is on.
numerator_coefficients and denominator_coefficients
Real
Defines the numerator and denominator coefficients.
start_frequency and end_frequency
Real
Defines the frequency sweep by entering the starting and ending frequencies for the Bode plot and selecting the frequency step, which you define using one of the next three parameters.
frequency_step
Real
Specifies the interval between frequencies.
log_samples
Integer
Specifies the number of log-spaced frequencies.
samples
Integer
Specifies the number of linear-spaced frequencies.