Lemonergy · Studio block

Pulse generator

Generates a periodic rectangular signal with explicit amplitude, duty fraction, phase delay and bias.

Implementation ID
native-pulse
Reviewed
2026-10-27

Behavior

y = bias + amplitude while phase is inside the duty fraction; otherwise bias. phase = (t − delay) modulo period.

Interface

Pulse generator interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Pulse generatorStudio blockout0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
out0output1Signal; real scalar.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
Amplitude
params[0]
12Configured value for Amplitude.
Period
params[1]
s1Configured value for Period.
Duty fraction (0–1)
params[2]
10.5Configured value for Duty fraction (0–1).
Phase delay
params[3]
s0Configured value for Phase delay.
Bias
params[4]
10Configured value for Bias.

Equations and rules

  • y = bias + amplitude while phase is inside the duty fraction; otherwise bias
  • phase = (t − delay) modulo period

Worked example

Pulse generator — worked example

Use the configured source parameters. Signal at 0 s = 2; Signal at 0.5 s = 0; Signal at 1 s = 2.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Signal
out0
0211e-09
Signal
out0
0.5011e-09
Signal
out0
1211e-09

Explore the recorded outputs

Pulse generator recorded example

Pulse generator
Pulse generator against timeRecorded synthetic simulation values. Time in seconds; output in —.-0.1600.420.2510.51.580.752.161—Time (s)
Pulse generator: 2 — at 0 s

3 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

Download the recorded samples (JSON) · Open this Studio example after release

Use in a workflow

Pulse generator — worked example

Generates a periodic rectangular signal with explicit amplitude, duty fraction, phase delay and bias.

  1. Pulse generator: y = bias + amplitude while phase is inside the duty fraction; otherwise bias. phase = (t − delay) modulo period.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Scalar real output; duty must be between zero and one. Exact edges are bounded to 100000 per source per run.

Reference basis

This software operation is defined by its public contract and worked example; no external research result is claimed.

Implementation sources

This reference follows the public interface and locally verified numerical checks for an upcoming release.

Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27

  • docs/glossary/native-block-verification.json

This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)