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
| Name | Direction | Unit | Meaning |
|---|---|---|---|
out0 | output | 1 | Signal; real scalar. |
Signal inputs
These directed signals carry information. Conserving terminals exchange the quantities of their physical domain.
Signal outputs
Outputs can supply compatible inputs. Connections and values are inspected in the model that owns them.
| Pin | Direction | Unit or domain | Meaning |
|---|---|---|---|
| Signal | output | — | Number; Scalar; real. Produced for connected consumers. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Amplitudeparams[0] | 1 | 2 | Configured value for Amplitude. |
Periodparams[1] | s | 1 | Configured value for Period. |
Duty fraction (0–1)params[2] | 1 | 0.5 | Configured value for Duty fraction (0–1). |
Phase delayparams[3] | s | 0 | Configured value for Phase delay. |
Biasparams[4] | 1 | 0 | Configured value for Bias. |
Equations and rules
y = bias + amplitude while phase is inside the duty fraction; otherwise biasphase = (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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Signalout0 | 0 | 2 | 1 | 1e-09 |
Signalout0 | 0.5 | 0 | 1 | 1e-09 |
Signalout0 | 1 | 2 | 1 | 1e-09 |
Explore the recorded outputs
Pulse generator recorded example
Pulse generator3 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example
Use in a workflow
Pulse generator — worked example
Generates a periodic rectangular signal with explicit amplitude, duty fraction, phase delay and bias.
- 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.
- Bundled example verified on the production release of 28 October 2026.
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 numerical checks for the verified Studio release. Synthetic examples and model limits remain as documented above.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
Production revision: e76cadfc203e15eb41f3478d8b1044a5b851953d · Verified: 2026-10-28
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)
Current authoring interface provenance
The interactive graphic is exported from the same Studio help descriptor. Source base: e248d21a9902225f1075624f23e7628b54cdb7cc. File content hashes in the public descriptor catalog identify the exact source snapshot. Existing numerical checks above retain their own verification scope.