electricpy.sim.ramp_response¶
-
electricpy.sim.ramp_response(system, npts=
1000
, dt=0.01
, combine=True
, xlim=False
, title='Ramp Response'
, errtitle='Ramp Response Error'
, resplabel='Ramp Response'
, funclabel='Ramp Function'
, errlabel='Error'
, filename=None
)[source]¶ Ramp Function Response Plotter Function.
Given a transfer function, plots the response against step input and plots the error for the function.
- Parameters:¶
- system : array_like¶
The Transfer Function; can be provided as the following: * 1 (instance of lti) * 2 (num, den) * 3 (zeros, poles, gain) * 4 (A, B, C, D)
- npts : int, optional¶
Number of steps to calculate over; default is 1000.
- dt : float, optional¶
Difference between each data point, default is 0.01.
- combine : bool, optional¶
If combination of numerator and denominator is needed. This value should be set to “True” if the parts should be combined to show the complete system with feedback. default=True.
- title : str, optional¶
Additional string to be added to plot titles; default=””
- xlim : list, optional¶
Limit in x-axis for graph plot. Accepts tuple of: (xmin, xmax). default=False.
- filename : str, optional¶
File directory/name with which the plotted figures should be saved. default=None