# Product (`product`)

> Multiplies two signals.

![product](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/product.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/control/product/)

**Group:** Control · **Kind:** `{"block":"product","kind":"control"}`

## When to use it

Use it for a power calculation (voltage times current), an enable mask or a variable gain. Use Gain when one factor is fixed.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `in1` | signal | First factor |
| `in2` | signal | Second factor |
| `out` | signal | Product of the two inputs |

## Model

out = in1*in2, with no dynamics and direct feedthrough. The unit of the output is the product of the two input units. An unconnected input reads 0, so the output is 0.

## Common mistakes

- An input left open reads 0, so the output stays at 0 and hides the other signal. Look for an open pin when the output stays at zero.
- Feeding the output back to its own input through blocks with no delay stops the run. Put an Integrator, Sample Delay or Sample and Hold in the path.

Problems rules: `pin.unconnected`, `solver.control`

## Datasheet and sources

No datasheet applies. The two factors are signals from your own loop, such as a measured voltage and a measured current.

## Example

Open the example with the command `file.openExample` and the name `demo:product`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
