Graphing PWM and Duty Cycle

Ask any questions about using PicoScope 6 Automotive software here.
Martyn
Pico Staff Member
Pico Staff Member
Posts: 359
Joined: Thu Aug 11, 2011 7:43 am
Location: Cambridgeshire

Re: Graphing PWM and Duty Cycle

Post by Martyn »

You can use a maths channel to display a representation of the duty cycle.

If you use integral(A) you will have a graph that will rise as duty cycle increases and fall as duty cycle decreases, this works because the integral gives you the area under the curve.
Martyn
Technical Support Manager

User avatar
Robski
Advanced User
Advanced User
Posts: 598
Joined: Tue Sep 14, 2010 6:36 pm
Location: Yorkshire

Re: Graphing PWM and Duty Cycle

Post by Robski »

Martyn,

Which 'time' will this respond to, high or low ?

Martyn
Pico Staff Member
Pico Staff Member
Posts: 359
Joined: Thu Aug 11, 2011 7:43 am
Location: Cambridgeshire

Re: Graphing PWM and Duty Cycle

Post by Martyn »

If you have a square wave with 50% duty cycle, centred about the 0V, you will get a triangle upwards when you have a positive pulse and a triangle down when you have a negative pulse. Repeat multiple cycles across the screen and you will see a sawtooth wave, the more cycles on the screen then the more sawtooths. It is not related to the time as it is just looking at the screen trace. Now if you change the duty cycle the saw tooth will move up or down, the greater the change, the greater the movement.

Please note that with streaming trace this will only appear once the screen is complete, the maths channels currently require a screen of data before they can be drawn (watch this space for a future update on this :wink:)
Martyn
Technical Support Manager

User avatar
Robski
Advanced User
Advanced User
Posts: 598
Joined: Tue Sep 14, 2010 6:36 pm
Location: Yorkshire

Re: Graphing PWM and Duty Cycle

Post by Robski »

ahh thanks for that, i was under the impression it was a flat line so to speak & not saw tooth.

Post Reply