{
  "node": {
    "id": "block:native-pulse",
    "type": "Block",
    "label": "Pulse generator",
    "properties": {
      "id": "native-pulse",
      "name": "Pulse generator",
      "kind": "studio",
      "summary": "Generates a periodic rectangular signal with explicit amplitude, duty fraction, phase delay and bias.",
      "behavior": "y = bias + amplitude while phase is inside the duty fraction; otherwise bias. phase = (t − delay) modulo period.",
      "ports": [
        {
          "name": "out0",
          "direction": "output",
          "unit": "1",
          "description": "Signal; real scalar.",
          "shape": [],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "params[0]",
          "label": "Amplitude",
          "unit": "1",
          "default": 2,
          "description": "Configured value for Amplitude."
        },
        {
          "key": "params[1]",
          "label": "Period",
          "unit": "s",
          "default": 1,
          "description": "Configured value for Period."
        },
        {
          "key": "params[2]",
          "label": "Duty fraction (0–1)",
          "unit": "1",
          "default": 0.5,
          "description": "Configured value for Duty fraction (0–1)."
        },
        {
          "key": "params[3]",
          "label": "Phase delay",
          "unit": "s",
          "default": 0,
          "description": "Configured value for Phase delay."
        },
        {
          "key": "params[4]",
          "label": "Bias",
          "unit": "1",
          "default": 0,
          "description": "Configured value for Bias."
        }
      ],
      "equations": [
        "y = bias + amplitude while phase is inside the duty fraction; otherwise bias",
        "phase = (t − delay) modulo period"
      ],
      "example": {
        "title": "Pulse generator — worked example",
        "text": "Use the configured source parameters. Signal at 0 s = 2; Signal at 0.5 s = 0; Signal at 1 s = 2.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-pulse",
        "label": "Open Studio example",
        "inputs": [],
        "checks": [
          {
            "port": "out0",
            "label": "Signal",
            "atS": 0,
            "value": 2,
            "unit": "1",
            "tolerance": 1e-09
          },
          {
            "port": "out0",
            "label": "Signal",
            "atS": 0.5,
            "value": 0,
            "unit": "1",
            "tolerance": 1e-09
          },
          {
            "port": "out0",
            "label": "Signal",
            "atS": 1,
            "value": 2,
            "unit": "1",
            "tolerance": 1e-09
          }
        ]
      },
      "limits": [
        "Scalar real output; duty must be between zero and one. Exact edges are bounded to 100000 per source per run."
      ],
      "references": [],
      "referenceNote": "This software operation is defined by its public contract and worked example; no external research result is claimed.",
      "caseIds": [
        "native-native-pulse"
      ],
      "availability": {
        "status": "released",
        "label": "Available in Lemonergy Studio",
        "detail": "The bundled example is available in the production release verified on 28 October 2026. The parameters and examples here are synthetic teaching fixtures, not a characterized cell or a validated operating limit."
      },
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "exampleTraces": [
        {
          "id": "native-pulse",
          "url": "https://lemonergy.com/learn/glossary/api/traces/native-pulse.json?v=a4f7dabba348",
          "title": "Pulse generator recorded example",
          "exampleId": "block-native-pulse",
          "source": "Executed synthetic Lemonergy Studio example",
          "recordedOn": "2026-10-28",
          "points": 3,
          "channels": 1,
          "omittedChannels": 0,
          "interpolation": "step",
          "solver": {
            "method": "dormand-prince-45",
            "reason": "no-continuous-states"
          }
        }
      ],
      "type": "native-pulse",
      "implementationId": "native-pulse",
      "url": "https://lemonergy.com/learn/glossary/blocks/native-pulse/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/native-pulse/",
      "sourceFile": "block-library.json",
      "reviewed": "2026-10-27",
      "releaseEvidence": {
        "environment": "production",
        "status": "verified",
        "revision": "e76cadfc203e15eb41f3478d8b1044a5b851953d",
        "verifiedOn": "2026-10-28",
        "exampleUrls": [
          "https://design.lemonergy.com/cosim.html?example=block-native-pulse"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-native-pulse/0",
      "type": "usesBlock",
      "source": "workflow:native-native-pulse",
      "target": "block:native-pulse",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Pulse generator",
        "type": "native-pulse",
        "role": "y = bias + amplitude while phase is inside the duty fraction; otherwise bias. phase = (t − delay) modulo period.",
        "settings": [
          "Use the block reference for settings and connections.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [],
  "neighbors": [
    {
      "id": "workflow:native-native-pulse",
      "type": "Workflow",
      "label": "Pulse generator — worked example",
      "properties": {
        "id": "native-native-pulse",
        "title": "Pulse generator — worked example",
        "kind": "studio",
        "summary": "Generates a periodic rectangular signal with explicit amplitude, duty fraction, phase delay and bias.",
        "steps": [
          "Review the interface, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare outputs with the numerical checks; change one input and run again."
        ],
        "example": "Use the configured source parameters. Signal at 0 s = 2; Signal at 0.5 s = 0; Signal at 1 s = 2.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Scalar real output; duty must be between zero and one. Exact edges are bounded to 100000 per source per run.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-pulse",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    }
  ]
}
