The electrical model used for these filters is either the Laplace Filters (1st, 2nd, 3rd Order) for a continuous time implementation, and for the discrete time implementation, the 1st Order Discrete Time Filter or 2nd Order Discrete Time Filter, depending on the filter order. The difference between this part and the Laplace and Discrete Time filters is the calculator dialog.
In this topic:
Model Name: | Continuous or Discrete Time Filter | |||
Simulator: | This device is compatible with the SIMPLIS simulator. | |||
Parts Selector Menu Locations: |
|
|||
Symbol Library: | simplis.sxslb | |||
Model File: |
|
|||
Subcircuit Names: | SIMPLIS_CONT_OR_DISCRETE_TIME_FILTER | |||
Symbols: |
|
|||
Multiple Selections: | Multiple devices can be selected and edited simultaneously. |
The filter has a calculator dialog which converts an s-domain transfer function to the z-domain or vice versa. This section assumes you have a s-domain transfer function which you would like to convert to the z-domain. To convert a z-domain transfer function to the s-domain, see Converting a Discrete Time (z-domain) Transfer Function to the S-Domain.
To configure the Continuous or Discrete Time Filter as a discrete-time filter, follow these steps:
The filter has a calculator dialog which converts an s-domain transfer function to the z-domain or vice versa. This section assumes you have a z-domain transfer function which you would like to convert to the s-domain. To convert a s-domain transfer function to the z-domain, see Converting a Continuous Time (s-domain) Transfer Function to the Z-Domain.
To configure the Continuous or Discrete Time Filter as a continuous-time filter, follow these steps:
The main parameter editing controls are described in the table below.
Parameter Groupings/Labels | Units | Description |
S-Domain Transfer Function | Enter the S-Domain filter coefficients in the text boxes. When you change the Order parameter, the equation and the available text boxes will change accordingly. Parameterized values using {} expressions are not permitted for these parameters. | |
Z-Domain Transfer Function | Enter the Z-Domain filter coefficients in the text boxes. When you change the Order parameter, the equation and the available text boxes will change accordingly. Parameterized values using {} expressions are not permitted for these parameters. | |
Calculate "s" Coefficients | This button uses the Z-Domain Transfer Function parameters, the Transform method, and the Sampling frequency to calculate an equivalent s-domain filter. | |
Calculate "z" Coefficients | This button uses the S-Domain Transfer Function parameters, the Transform method, and the Sampling frequency to calculate an equivalent z-domain filter. | |
Transform method | The transform method | |
Sampling frequency | The sampling frequency for the discrete time filter. This is used to calculate both the s-domain and z-domain coefficients. Parameterized values using {} expressions are not permitted for this parameter | |
Order | The filter order. Parameterized values using {} expressions are not permitted for this parameter | |
Gain | The filter gain | |
Initial Condition - IC | V | Initial output voltage of the filter |
The dialog has an Advanced Options tab with three controls which affect the precision of the model and the transfer function displayed on the symbol. There are text descriptions on the dialog tab to the right of each control which describe the control's function.
The subcircuit and editing dialog for the Continuous/Discrete Time filter were introduced in version 8.10. The filter will not simulate nor will it be editable in versions prior to 8.10.
For discrete time filters which are compatible with previous versions, see the part selector locations:
Below are two examples of varying complexity which demonstrate how to use the Continuous/Discrete Time filters.
simplis_081_continuous_time_pole_zero.sxsch | simplis_081_discrete_time_pole_zero.sxsch |
The schematics are configured to output the gain/phase waveforms to the same grid so the two filters can be easily compared. The AC response for the two filters is shown below:
simplis_081_continuous_time_lpf.sxsch | simplis_081_discrete_time_lpf.sxsch |
The schematics are configured to output the gain/phase waveforms to the same grid so the two filters can be easily compared. The AC response for the two low pass filters is shown below: