Zero-Pole-Gain (zpk)
A transfer function given by its zeros, its poles and a gain.
Group: Control · Kind: {"block":"zpk","kind":"control"}
When to use it
Use it when a data sheet, a paper or your design gives a filter or a compensator as poles and zeros, such as a Type II compensator with a zero at 1 kHz and a pole at 20 kHz. Use Transfer Function for polynomial coefficients.
Pins
| Pin | Domain | Meaning |
|---|---|---|
in |
signal | Signal input |
out |
signal | Signal output |
Common parameters
zeros: Zeros on the s-plane, with commas; a+bj stands for the pair a ± bj; empty for none (Default: optional (off))poles: Poles on the s-plane, with commas; a+bj stands for the pair a ± bj (Default: required)k: Gain in front of the factored form (not the DC gain) (Default: required)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
zeros |
rad/s | optional (off) | Zeros on the s-plane, with commas; a+bj stands for the pair a ± bj; empty for none | |
poles |
rad/s | required | Poles on the s-plane, with commas; a+bj stands for the pair a ± bj | |
k |
— | required | Gain in front of the factored form (not the DC gain) |
Parameter descriptions are in English in both languages.
Model
H(s) = k·(s − z1)(s − z2)…/((s − p1)(s − p2)…), roots in rad/s on the s-plane, so a pole at 1 kHz is -2pi1k. A complex root is written a+bj (no spaces) and stands for the pair a ± bj, so the polynomial has real coefficients. The block multiplies the factors out once and runs as Transfer Function. k multiplies the factored form, it is not the DC gain: k/(s + 1000) has a DC gain of k/1000.
Common mistakes
- More zeros than poles is refused (the block must be proper), as is an order above 16; a complex root counts twice.
- Write the roots as negative numbers for a stable block: a pole at +1000 grows without bound. Enter roots in rad/s, not Hz.
Problems rules: compile.error, solver.control
Datasheet and sources
There is no datasheet. The roots come from your design. Code generation treats the block like Transfer Function.
Example
Open the example with the command file.openExample and the name demo:zpk.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.