# \#offset

**URL:** https://forum.plexim.com/tag/offset/241.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [Sampling Analog Signals, control in C-script and use PWM out of RT Box as a gate driver](https://forum.plexim.com/t/sampling-analog-signals-control-in-c-script-and-use-pwm-out-of-rt-box-as-a-gate-driver/1125)

<div class="topic-metadata">

**Author:** [@Gleisson](https://forum.plexim.com/u/Gleisson)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 11:43am UTC](https://forum.plexim.com/t/sampling-analog-signals-control-in-c-script-and-use-pwm-out-of-rt-box-as-a-gate-driver/1125 "2022-06-15T11:43:12Z")

</div>

Hi! I want to capture two analog signals, process the control in C-script, and use PWM out block to generate the PWM gate drive signals. I set the PWM out block to Enable Synchronization with step model, which allows on…
