File:PWM 3L.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
PWM_3L.gif (640 × 480 pixels, file size: 132 KB, MIME type: image/gif, looped, 17 frames, 5.4 s)
File information
Structured data
Captions
DescriptionPWM 3L.gif |
Français : Influence de l'amplitude sur la forme de la sortie amplificateur de classe D à trois niveaux English: Three level PWM |
||||||||
Date | 1/02/2008 | ||||||||
Source | Own work | ||||||||
Author | Yves-Laurent | ||||||||
Permission (Reusing this file) |
I, the copyright holder of this work, hereby publish it under the following licenses:
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You may select the license of your choice. |
Gnuplot script
[edit]Save this script to file "anim" then run the command line "gnuplot anim", you will get classe_D_*.gif (*=1, ..? ,17), if you have well installed gnuplot 4.0 or later.
# script based on "Three types.png"'s script by Cyril BUTTAY # graph configuration set terminal gif font 'Times_New_Roman' 28 set encoding iso_8859_15 unset border unset label unset xtics unset ytics set samples 15000 set yrange [-0.1:1.1] Nb=24 set xrange [0:Nb-0.1] # equation of the trail modulation saw signal trailsignal(x) = x-floor(x) #equation of the sine signal freq=1.0/Nb ve(x,amp) = 0.5+amp*sin(freq*x*(2*pi)) #equation of the resulting pwm trail signal pwm(x,amp)=trailsignal(x)>=ve(x,amp)?0:1 pwm3l(x,amp)=(abs(ve(x,amp)-pwm(x,amp)))>0.5?0.5:pwm(x,amp) set output "class_D_01.gif" plot ve(x,0.05) title "Ve" with lines lw 2, \ pwm3l(x,0.05) title "Vs" with lines lw 2 set output "class_D_02.gif" plot ve(x,0.1) title "Ve" with lines lw 2, \ pwm3l(x,0.1) title "Vs" with lines lw 2 set output "class_D_03.gif" plot ve(x,0.15) title "Ve" with lines lw 2, \ pwm3l(x,0.15) title "Vs" with lines lw 2 set output "class_D_04.gif" plot ve(x,0.2) title "Ve" with lines lw 2, \ pwm3l(x,0.2) title "Vs" with lines lw 2 set output "class_D_05.gif" plot ve(x,0.25) title "Ve" with lines lw 2, \ pwm3l(x,0.25) title "Vs" with lines lw 2 set output "class_D_06.gif" plot ve(x,0.3) title "Ve" with lines lw 2, \ pwm3l(x,0.3) title "Vs" with lines lw 2 set output "class_D_07.gif" plot ve(x,0.35) title "Ve" with lines lw 2, \ pwm3l(x,0.35) title "Vs" with lines lw 2 set output "class_D_08.gif" plot ve(x,0.4) title "Ve" with lines lw 2, \ pwm3l(x,0.4) title "Vs" with lines lw 2 set output "class_D_09.gif" plot ve(x,0.45) title "Ve" with lines lw 2, \ pwm3l(x,0.45) title "Vs" with lines lw 2 set output "class_D_10.gif" plot ve(x,0.4) title "Ve" with lines lw 2, \ pwm3l(x,0.4) title "Vs" with lines lw 2 set output "class_D_11.gif" plot ve(x,0.35) title "Ve" with lines lw 2, \ pwm3l(x,0.35) title "Vs" with lines lw 2 set output "class_D_12.gif" plot ve(x,0.3) title "Ve" with lines lw 2, \ pwm3l(x,0.3) title "Vs" with lines lw 2 set output "class_D_13.gif" plot ve(x,0.25) title "Ve" with lines lw 2, \ pwm3l(x,0.25) title "Vs" with lines lw 2 set output "class_D_14.gif" plot ve(x,0.2) title "Ve" with lines lw 2, \ pwm3l(x,0.2) title "Vs" with lines lw 2 set output "class_D_15.gif" plot ve(x,0.15) title "Ve" with lines lw 2, \ pwm3l(x,0.15) title "Vs" with lines lw 2 set output "class_D_16.gif" plot ve(x,0.1) title "Ve" with lines lw 2, \ pwm3l(x,0.1) title "Vs" with lines lw 2 set output "class_D_17.gif" plot ve(x,0.05) title "Ve" with lines lw 2, \ pwm3l(x,0.05) title "Vs" with lines lw 2
Don't forget to set GDFONTPATH before running gnuplot with something like :
export GDFONTPATH=/var/lib/defoma/gs.d/dirs/fonts/
Gifsicle script
[edit]gifsicle --delay=32 --loop --optimize *.gif > PWM_3L.gif
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 23:32, 2 February 2008 | 640 × 480 (132 KB) | Yves-Laurent (talk | contribs) | {{Information |Description={{fr|Influence de l'amplitude sur la forme de la sortie amplificateur de classe D à trois niveaux}}{{en|Three level PWM}} |Source=travail personnel |Date=2/02/2008 |Author= Yves-Laurent |Permission={{self2 | |
23:41, 1 February 2008 | 640 × 480 (112 KB) | Yves-Laurent (talk | contribs) | {{Information |Description={{fr|Influence de l'amplitude sur la forme de la sortie amplificateur de classe D à trois niveaux}}{{en|Three level PWM}} |Source=travail personnel |Date=1/02/2008 |Author= Yves-Laurent |Permission={{self2 |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on eo.wikipedia.org
- Usage on es.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on hr.wikipedia.org