Voltecx 目前為測試版。macOS 版先推出,Windows 與 Linux 安裝包仍在測試中。測試版。macOS 版先推出,Windows 與 Linux 版仍在測試。⁠最新消息
文件

脈衝電壓源 (pulseVoltageSource)

產生脈衝或方波電壓。

pulseVoltageSource

元件參考 · English

分類: 電源 · 種類: {"kind":"pulseVoltageSource"}

何時使用

用於階躍測試、負載或電源階躍與測試脈衝。開關的閘極驅動請改用 PWM 產生器。

接腳

接腳 訊號域 意義
p 電氣 正端
n 電氣 負端,也是參考側

常用參數

  • v1: Low level before the pulse (預設值: 0)
  • v2: High level during the pulse (預設值: 必填)
  • width: How long each pulse stays high (預設值: 必填)
  • period: Time from one pulse to the next (預設值: 0)
  • delay: Wait before the first pulse (預設值: 0)

參數

鍵 單位 預設值 典型範圍 說明
v1 V 0 Low level before the pulse
v2 V 必填 High level during the pulse
delay s 0 Wait before the first pulse
rise s 0 Rise time
fall s 0 Fall time
width s 必填 How long each pulse stays high
period s 0 Time from one pulse to the next
rs Ω 0 1m – 10 Ω Resistance inside the source

參數說明在兩種語言中都是英文。

適用於: 階躍測試 · 電源階躍 · 測試脈衝

不適用於: 開關閘極驅動 → pwm · 控制訊號階躍 → step

公式

公式 方程式 出處
工作比 D = width/period Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), §2.1
平均值(理想邊緣) Vavg = v1 + (v2 − v1)·D Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), §2.1
有效值(理想邊緣) Vrms = √(v1²·(1 − D) + v2²·D) Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), Appendix A

快速驗算

輸入:

  • v1: 低準位 = 0 V, v1
  • v2: 高準位 = 5 V, v2
  • width: 脈寬 = 5u s, width
  • period: 週期 = 20u s, period

輸出:

  • duty: 工作比 = width/period —
  • vavg: 平均電壓 = v1 + (v2 - v1)*duty V
  • vrms: 有效值電壓 = sqrt(v1^2*(1 - duty) + v2^2*duty) V

模型邏輯

  • 輸出在 delay 之前為 v1,在 rise 內線性升到 v2,維持 v2 達 width,在 fall 內降回,之後維持 v1 直到一個 period 後的下一個週期。
  • width 只算平頂部分,不含 rise 與 fall;period 為 0 或負值時只有一個脈衝,負的 rise、fall 或 width 視為 0。
  • 步長控制在每個週期都精確落在每個轉折點上,所以 rise 與 fall 為 0 時邊緣是乾淨的階躍,每個週期的導通時間都相同。
  • 這是一條理想電壓支路,可選擇在內部 n 側串聯 rs;過衝、振鈴與驅動電流限制都沒有建模。

模型

輸出在 delay 之前為 v1,在 rise 內線性升到 v2,維持 width,在 fall 內降回 v1,每隔 period 重複(0 表示只有一個脈衝)。工作比為 width / period,且 rise + width + fall 必須放得進 period。步長控制會精確落在邊緣上。

常見錯誤

  • width 比 period 長會使工作比超過 100%。請把脈寬設成週期的一部分。
  • width 與 period 單位是秒,所以 5 是五秒,不是 5u。width 沒有預設值,一定要設定。

Problems 規則: duty.pulse, param.out_of_range

規格書與來源

沒有規格書。v1 與 v2 是你的測試準位,period 是測試頻率的倒數,rise 與 fall 依你要測試的邊緣速度決定。

範例

以指令 file.openExample 開啟範例,名稱為 demo:pulseVoltageSource.


由 cargo xtask reference 依使用說明文字與參數規格產生,請勿手動編輯。