> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/artemis-library/5-level-npc-tsb-rd.md).

# 5-level NPC TSB RD

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-e51d72eb070b7d4d493a7a1faf113fd547826614%2FArtemis_5level_NPC_TSB_TD_block.png?alt=media" alt="" width="137"><figcaption></figcaption></figure>

The **TSB-RD 5‑level NPC Inverter** block, located in the **ARTEMiS/SSN/TSB-RD** library, implements one leg of a 5‑level neutral-point-clamped inverter with dead-time support.

Several legs can be used to model a 3-phase 5-level inverter.

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-e3e291dc1a2141d37551c522fa13fc11f31c9179%2FArtemis_5level_NPC_TSB_TD_schem.png?alt=media" alt="" width="138"><figcaption><p>Fig 1: Five-Level NPC<br>inverter circuit configuration</p></figcaption></figure>

This model is part of the Time-Stamped Bridge (TSB) Real Diodes generation (TSB‑RD). It supports the interpolation methods of the previous TSB generation. High-impedance and rectifying modes are implemented with real SPS diodes or a combination of SPS switches and thyristors (i.e., enableable diodes). Compared to the previous generation, TSB‑RD models are generally more stable and operate with RC snubbers of higher impedance.

{% hint style="info" %}
TSB‑RD blocks support dead-time values smaller than the simulation time step (unlike SPS inverter models).
{% endhint %}

Active switches and diodes are modeled as binary resistances with infinite OFF resistance and very low ON resistance.

The user sets the ground location; it does not need to be at the DC‑bus midpoint.

TSB‑RD blocks are built with real SPS switches, diodes, and/or thyristors. A 3‑phase inverter uses three internal SPS switches per leg (nine per inverter), which approaches the typical limit for pre-calculation methods in real-time systems. Use TSB‑RD inverters with SSN and place each inverter in a unique SSN group.

### Maximum PWM frequency and sample time

F<sub>ratio</sub> = F<sub>sampling</sub>/F<sub>PWM</sub> where F<sub>sampling</sub> is the inverse of the sample time T<sub>s</sub>.

***Standard mode (F***<sub>***ratio***</sub>***> 10)***: The model provides excellent accuracy for *F*<sub>*ratio*</sub> ≥ 10. For example, with a 10 µs time step (F<sub>sampling</sub>=100 kHz), a 10 kHz PWM frequency is suitable.

***Extended mode (F***<sub>***ratio***</sub> ***< 10)***: Operation below 10 is also possible with very good accuracy. In this region, PWM components gradually diminish while the fundamental and harmonic components remain observable.

Unlike the previous TSB generation that often required large RC snubbers for stability in no‑pulse mode, TSB‑RD typically runs with negligible RC snubbers or none. For natural rectifying mode, a small snubber (C=0.1 µF, R=1000 Ω, typical) may be required; this impedance is about 100× larger than previously needed. Many TSB‑RD demos run stably with almost no snubbers, for example, an R‑only snubber of 1 MΩ. R‑only snubbers are advantageous because they do not add capacitive states to the circuit equations.

{% hint style="danger" %}
This block requires a valid RT-LAB license on the simulator with the feature ARTEMiS enabled. Refer to[ ARTEMiS Requirements](https://www.opal-rt.com/docs/rt-lab/model-and-simulation/power-systems-with-artemis/artemis-requirements.md) for details.
{% endhint %}

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-301568821285eb0bc286d25b9c797e0147cbe344%2Fimage.png?alt=media" alt="" width="323"><figcaption></figcaption></figure>

<table><thead><tr><th width="234.79998779296875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Switches Ron (Ohms)</strong></td><td>Internal switch and diode conduction resistance in ohms.</td></tr><tr><td><strong>Snubber resistance (ohms)</strong></td><td>Snubber resistance in ohms.</td></tr><tr><td><strong>Snubber Capacitance (F)</strong></td><td>Snubber capacitance in farads.</td></tr></tbody></table>

{% hint style="info" %}
The snubbers are always in circuit (modeled by SPS components). The model has no sample time; it runs discretely at the SPS-selected sample time.
{% endhint %}

## Conserving ports

<table><thead><tr><th width="239.60003662109375">Port</th><th>Description</th></tr></thead><tbody><tr><td><strong>V++, V+, Vn, V-, V--</strong></td><td>DC‑bus connection points (Vn is a neutral reference point used only as a reference in the model).</td></tr><tr><td><strong>A</strong></td><td>Inverter output.</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="239.5999755859375">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>g (Simulink connection points)</strong></td><td><p>Gate input signals for the active switches (IGBT/GTO/MOSFET)</p><p>The order is 1, 5, 2, 6, 3, 7, 4, 8 referring the figure 1. Signals are Mean‑Active‑Duty (MAD) type with a value between 0 and 1 inclusively.<br>Examples: [1, 0.3, 0] means [gate ON, turned ON at 30% of the time step, gate OFF].</p></td></tr></tbody></table>

## Outputs

This block has no outputs


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/rt-lab/simulink-blocks-reference/artemis-library/5-level-npc-tsb-rd.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
