<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniele Salatti</title>
	<atom:link href="http://www.salatti.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.salatti.net</link>
	<description>The unhandled exception</description>
	<lastBuildDate>Sat, 12 Nov 2011 18:06:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bode Plots Little Tutorial &#8211; Part 1</title>
		<link>http://www.salatti.net/bode-plots-little-tutorial/</link>
		<comments>http://www.salatti.net/bode-plots-little-tutorial/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 18:06:19 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[Bode plot]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=36</guid>
		<description><![CDATA[While working as a consultant I&#8217;m struggling trying to finish my studies in Computer Engineering. The Bachelor degree seems so far away&#8230; Anyway, I&#8217;m preparing for an exam right now and I would like to share with you a bit &#8230; <a href="http://www.salatti.net/bode-plots-little-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While working as a consultant I&#8217;m struggling trying to finish my studies in Computer Engineering. The Bachelor degree seems so far away&#8230;<br />
Anyway, I&#8217;m preparing for an exam right now and I would like to share with you a bit of what I learn along the road, so I&#8217;m going to write down a little tutorial on how to draw a bode plot. The transfer function comes from an actual exercise I found in a book.</p>
<p>Given the following transfer function:</p>
<img src='http://s0.wp.com/latex.php?latex=G%28s%29+%3D+%5Cfrac%7B50%28s%2B100%29%7D%7Bs%28s%2B1%29%28s%5E2%2B10s%2B100%29%7D&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='G(s) = &#92;frac{50(s+100)}{s(s+1)(s^2+10s+100)}' title='G(s) = &#92;frac{50(s+100)}{s(s+1)(s^2+10s+100)}' class='latex' />
<p>Plot the&nbsp;Bode&nbsp;diagram&nbsp;and determine the&nbsp;gain and phase&nbsp;margins.</p>
<h2><span id="more-36"></span>Step 1 &#8211; Extract the constituent parts of the transfer function</h2>
<p>That&#8217;s easy.&nbsp;In practice we are going to decompose the transfer function into its constituent parts.&nbsp;To simplify that process, we are going to rewrite the transfer function in the Bode form.</p>
<img src='http://s0.wp.com/latex.php?latex=G%28s%29+%3D+%5Cfrac%7B50+%5Ccdot+100%281%2B%5Cfrac%7Bs%7D%7B100%7D%29%7D%7Bs%281%2Bs%29100%281%2B%5Cfrac%7B1%7D%7B10%7Ds%2B%5Cfrac%7Bs%5E2%7D%7B100%7D%29%7D%3D50+%5Cfrac%7B%281%2B%5Cfrac%7Bs%7D%7B100%7D%29%7D%7Bs%281%2Bs%29%281%2B%5Cfrac%7B1%7D%7B10%7Ds%2B%5Cfrac%7Bs%5E2%7D%7B100%7D%29%7D&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='G(s) = &#92;frac{50 &#92;cdot 100(1+&#92;frac{s}{100})}{s(1+s)100(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})}=50 &#92;frac{(1+&#92;frac{s}{100})}{s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})}' title='G(s) = &#92;frac{50 &#92;cdot 100(1+&#92;frac{s}{100})}{s(1+s)100(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})}=50 &#92;frac{(1+&#92;frac{s}{100})}{s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})}' class='latex' />
<p>As I said that&#8217;s an easy step. Now we need to extract the following parts from the transfer function:</p>
<ol>
<li>A constant (K)</li>
<li>Poles at the origin</li>
<li>Zeros at the origin</li>
<li>Real Poles</li>
<li>Real Zeros</li>
<li>Complex conjugate Poles</li>
<li>Complex conjugate Zeros</li>
</ol>
<h3>1 &#8211; A constant (K)</h3>
<p>A no-brainer. The value of K is 50.</p>
<img src='http://s0.wp.com/latex.php?latex=K+%3D+50&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='K = 50' title='K = 50' class='latex' />
<p>Write it down and let&#8217;s move forward.</p>
<h3>2 &#8211; Poles at the origin</h3>
<p>For a definition of what a pole is, please refer to the <a title="Pole in complex analysis" href="http://en.wikipedia.org/wiki/Pole_(complex_analysis)" target="_blank">page on wikipedia</a>.&nbsp;We need to find out if there are poles in zero, and of course there&#8217;s one. It&#8217;s easy to spot it at a glance: just give a look at the denominator:</p>
<img src='http://s0.wp.com/latex.php?latex=s%281%2Bs%29%281%2B%5Cfrac%7B1%7D%7B10%7Ds%2B%5Cfrac%7Bs%5E2%7D%7B100%7D%29&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})' title='s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})' class='latex' />
<p>So, we got a pole in 0, let&#8217;s write it down and move to the next step.</p>
<img src='http://s0.wp.com/latex.php?latex=P+%3D+%5Cleft%5C%7B%7B0%7D%5Cright%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='P = &#92;left&#92;{{0}&#92;right&#92;}' title='P = &#92;left&#92;{{0}&#92;right&#92;}' class='latex' />
<h3>3 -&nbsp;Zeros at the origin</h3>
<p>Again, for a definition of what a zero is, please refer to the <a title="Zero in complex analysis" href="http://en.wikipedia.org/wiki/Zero_(complex_analysis)" target="_blank">page on wikipedia</a>.&nbsp;This time we have no luck: it&#8217;s easy to see that there aren&#8217;t zeroes in 0.</p>
<p>Nothing to write this time&#8230;just move to the next step.</p>
<h3>4 &#8211; Real Poles</h3>
<p>We got one! Give a look at the denominator again:</p>
<img src='http://s0.wp.com/latex.php?latex=s%281%2Bs%29%281%2B%5Cfrac%7B1%7D%7B10%7Ds%2B%5Cfrac%7Bs%5E2%7D%7B100%7D%29&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})' title='s(1+s)(1+&#92;frac{1}{10}s+&#92;frac{s^2}{100})' class='latex' />
<p>We have a pole in -1.</p>
<img src='http://s0.wp.com/latex.php?latex=P+%3D+%5Cleft%5C%7B%7B0%2C+-1%7D%5Cright%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='P = &#92;left&#92;{{0, -1}&#92;right&#92;}' title='P = &#92;left&#92;{{0, -1}&#92;right&#92;}' class='latex' />
<h3>5 -&nbsp;Real Zeros</h3>
<p>Looking at our numerator it is easy to spot: there&#8217;s a zero in -100.</p>
<img src='http://s0.wp.com/latex.php?latex=%281%2B%5Cfrac%7Bs%7D%7B100%7D%29&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='(1+&#92;frac{s}{100})' title='(1+&#92;frac{s}{100})' class='latex' />
<p>Write it down and&#8230;yeah, you guessed it: move to the next step.</p>
<img src='http://s0.wp.com/latex.php?latex=P+%3D+%5Cleft%5C%7B%7B-100%7D%5Cright%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=2' alt='P = &#92;left&#92;{{-100}&#92;right&#92;}' title='P = &#92;left&#92;{{-100}&#92;right&#92;}' class='latex' />
<h3>6 -&nbsp;Complex conjugate Poles</h3>
<p>Finally, the fun begins! But you have to wait for this part&#8230; </p>
<p>To be continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/bode-plots-little-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Catching the Sunset</title>
		<link>http://www.salatti.net/catching-the-sunset/</link>
		<comments>http://www.salatti.net/catching-the-sunset/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 12:28:12 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Leghorn]]></category>
		<category><![CDATA[Livorno]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=118</guid>
		<description><![CDATA[On Sunday evening I went out with my camera and tried to practice sunset photography. I took more than 130 pictures. Some of them are good, others&#8230;well, not that much! Here are a couple of those pictures. Location: Terrazza Mascagni, &#8230; <a href="http://www.salatti.net/catching-the-sunset/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On Sunday evening I went out with my camera and tried to practice sunset photography. I took more than 130 pictures.<br />
Some of them are good, others&#8230;well, not that much!<br />
Here are a couple of those pictures.</p>

<a href='http://www.salatti.net/catching-the-sunset/sunset-in-leghorn-2/' title='Sunset in Leghorn 2'><img width="140" height="140" src="http://www.salatti.net/wp-content/uploads/2011/10/Sunset-in-Leghorn-2-140x140.jpg" class="attachment-thumbnail" alt="Sunset in Leghorn 2" title="Sunset in Leghorn 2" /></a>
<a href='http://www.salatti.net/catching-the-sunset/sunset-in-leghorn/' title='Sunset in Leghorn'><img width="140" height="140" src="http://www.salatti.net/wp-content/uploads/2011/10/Sunset-in-Leghorn-140x140.jpg" class="attachment-thumbnail" alt="Sunset in Leghorn" title="Sunset in Leghorn" /></a>
<a href='http://www.salatti.net/catching-the-sunset/sunset-in-livorno/' title='Sunset in Livorno'><img width="140" height="140" src="http://www.salatti.net/wp-content/uploads/2011/10/Sunset-in-Livorno-140x140.jpg" class="attachment-thumbnail" alt="Sunset in Livorno" title="Sunset in Livorno" /></a>

<p>Location: <a href="http://maps.google.com/maps?msid=211294815700901658112.0004af91c9530870d9c48&#038;msa=0&#038;ll=43.534215,10.300434&#038;spn=0.003897,0.009645&#038;t=h&#038;z=17&#038;vpsrc=6" title="Terrazza Mascagni, Livorno">Terrazza Mascagni, Livorno</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/catching-the-sunset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No more spam?</title>
		<link>http://www.salatti.net/no-more-spam/</link>
		<comments>http://www.salatti.net/no-more-spam/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 18:38:22 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=78</guid>
		<description><![CDATA[You can&#8217;t even imagine how many spammy comments I got in the last few days&#8230; To stop these annoying folks (or bots) from throwing their rubbish in my comments form I completely removed the &#8220;website&#8221; field, so anyone can still &#8230; <a href="http://www.salatti.net/no-more-spam/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can&#8217;t even imagine how many spammy comments I got in the last few days&#8230;<br />
To stop these annoying folks (or bots) from throwing their rubbish in my comments form I completely removed the &#8220;website&#8221; field, so anyone can still enter a comment but he/she will not get a link back anymore. Let&#8217;s see if it works&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/no-more-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup XCode 4 and GHUnit to do TDD on iOS</title>
		<link>http://www.salatti.net/how-to-setup-xcode-4-and-ghunit-to-do-tdd-on-ios/</link>
		<comments>http://www.salatti.net/how-to-setup-xcode-4-and-ghunit-to-do-tdd-on-ios/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 20:03:32 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Objective-C [iOS & Mac OS X]]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=79</guid>
		<description><![CDATA[A very interesting video where Robert van Loghem, shows you how to setup GHUnit in XCode 4 to do Test Driven Development for iOS. There&#8217;s also a blog post here.]]></description>
			<content:encoded><![CDATA[<p><object width="620" height="349"><param name="movie" value="http://www.youtube.com/v/zk2PXso_WHQ?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zk2PXso_WHQ?version=3" type="application/x-shockwave-flash" width="620" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>A very interesting video where Robert van Loghem, shows you how to setup GHUnit in XCode 4 to do Test Driven Development for iOS.<br />
There&#8217;s also a blog post <a href="http://blog.xebia.com/2011/03/23/ios-xcode-4-ghunit-mobile-tddcontinuous-testing-part-2-of-n/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/how-to-setup-xcode-4-and-ghunit-to-do-tdd-on-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Luck is an abstract class</title>
		<link>http://www.salatti.net/luck-is-an-abstract-class/</link>
		<comments>http://www.salatti.net/luck-is-an-abstract-class/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 19:47:22 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Quotes]]></category>
		<category><![CDATA[abstract class]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[luck]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=70</guid>
		<description><![CDATA[Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication. Y. Shetty, S. JayaswalPractical .NET for Financial Markets]]></description>
			<content:encoded><![CDATA[<blockquote><p>Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.</p>
<p><cite>Y. Shetty, S. Jayaswal<br />Practical .NET for Financial Markets</cite></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/luck-is-an-abstract-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to blogging (again)</title>
		<link>http://www.salatti.net/back-to-blogging-again/</link>
		<comments>http://www.salatti.net/back-to-blogging-again/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 02:01:04 +0000</pubDate>
		<dc:creator>Daniele Salatti</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.salatti.net/?p=29</guid>
		<description><![CDATA[It’s been a while since I last wrote on a blog. Real life commitments kept me busy for quite a bit but I think it’s time to revert to old habits. However, the topics will be completely new. Hope to &#8230; <a href="http://www.salatti.net/back-to-blogging-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It’s been a while since I last wrote on a blog. Real life commitments kept me busy for quite a bit but I think it’s time to revert to old habits. However, the topics will be completely new.</p>
<p>Hope to see you soon, here on my blog. In the mean time you can learn more about who I am by checking my <a title="Daniele Salatti on LinkedIn" href="http://www.linkedin.com/in/danielesalatti">LinkedIn</a> profile (well, I got a <a href="http://careers.stackoverflow.com/danielesalatti">Stack Overflow Careers profile</a> if you prefer) or reading my <a title="Daniele Salatti on Twitter" href="http://twitter.com/#!/DanieleSalatti">tweets</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.salatti.net/back-to-blogging-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<div id="test_map" style="display:none" ></div></channel>
</rss>

