The pwm curve is not straight

The sloped curves occur because the trace’s “Signal Type” is set to Continuous, where the samples are connected by straight lines. In the video the traces are configured as Discrete, meaning the sample values are held constant until the next sample. You can manually change the signal type to discrete by activating the cursors, and then clicking on the signal type icon next to the trace name. Note that in both cases, the signal values are the same, it’s merely a change in how they are displayed.

The figure below shows two PWM signals, the upper is continuous and the bottom is discrete. Clicking the icon opens the menu shown below.

1 Like