零極點增益 (zpk)
以零點、極點與增益描述的轉移函數。
分類: 控制 · 種類: {"block":"zpk","kind":"control"}
何時使用
規格書、論文或你的設計以極點與零點給出濾波器或補償器時使用,例如零點在 1 kHz、極點在 20 kHz 的 Type II 補償器。係數形式請用轉移函數。
接腳
| 接腳 | 訊號域 | 意義 |
|---|---|---|
in |
訊號 | 訊號輸入 |
out |
訊號 | 訊號輸出 |
常用參數
zeros: Zeros on the s-plane, with commas; a+bj stands for the pair a ± bj; empty for none (預設值: 選填(預設關閉))poles: Poles on the s-plane, with commas; a+bj stands for the pair a ± bj (預設值: 必填)k: Gain in front of the factored form (not the DC gain) (預設值: 必填)
參數
| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
zeros |
rad/s | 選填(預設關閉) | Zeros on the s-plane, with commas; a+bj stands for the pair a ± bj; empty for none | |
poles |
rad/s | 必填 | Poles on the s-plane, with commas; a+bj stands for the pair a ± bj | |
k |
— | 必填 | Gain in front of the factored form (not the DC gain) |
參數說明在兩種語言中都是英文。
模型
H(s) = k·(s − z1)(s − z2)…/((s − p1)(s − p2)…),根以 s 平面上的 rad/s 表示,所以 1 kHz 的極點寫成 -2pi1k。複數根寫成 a+bj(不要有空格),代表一對 a ± bj,因此多項式的係數都是實數。方塊在建置時把各因式乘開,之後和轉移函數方塊一樣執行。k 乘在因式形式前面,不是直流增益:k/(s + 1000) 的直流增益是 k/1000。
常見錯誤
- 零點多於極點會被拒絕(方塊必須是 proper),階數超過 16 也會被拒絕;一個複數根算兩個。
- 穩定的方塊要把根寫成負數:+1000 的極點會無限增長。根的單位是 rad/s,不是 Hz。
Problems 規則: compile.error, solver.control
規格書與來源
沒有規格書。根來自你的設計。程式碼產生對此方塊的處理與轉移函數相同。
範例
以指令 file.openExample 開啟範例,名稱為 demo:zpk.
由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。