<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Let&#039;s LabVIEW</title>
	<atom:link href="http://foolooo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://foolooo.wordpress.com</link>
	<description>LabVIEW, tech, science and stuffs</description>
	<lastBuildDate>Fri, 13 Jan 2012 06:10:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='foolooo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/90cc821360386b8f724fd413620b4e63?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Let&#039;s LabVIEW</title>
		<link>http://foolooo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://foolooo.wordpress.com/osd.xml" title="Let&#039;s LabVIEW" />
	<atom:link rel='hub' href='http://foolooo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Preparing for LabVIEW CLD exam (2)</title>
		<link>http://foolooo.wordpress.com/2011/09/10/preparing-for-labview-cld-exam-2/</link>
		<comments>http://foolooo.wordpress.com/2011/09/10/preparing-for-labview-cld-exam-2/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 00:45:20 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[CLD]]></category>
		<category><![CDATA[exam]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=197</guid>
		<description><![CDATA[I should have written this post one month ago before I took the CLD exam. The good news is I passed that. 80 out of 100, which is more than I expected (I&#8217;ll carry on this later). I will not talk anything about the exam itself, as I promised in the exam. But just finish [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=197&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I should have written this post one month ago before I took the CLD exam. The good news is I passed that. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  80 out of 100, which is more than I expected (I&#8217;ll carry on this later).</p>
<p>I will not talk anything about the exam itself, as I promised in the exam. But just finish the things I prepared for the exam.<br />
1. I found this blog &#8220;<a href="http://blog.jki.net/community/pass-your-cldcla-exams-the-jki-way/">Pass your CLD/CLA exams the JKI way</a>&#8221; very useful, which gave me the confidence of carry on preparing for the exam. Though I didnt use it at the end, it is very helpful for preparing your own template.<br />
2. Timing problem. The timing problem is the tricky part in the exam, such as how to pause/resume/restart your state machine. I made a subVI beforehand to practise it. You can find it <a href="http://foolooo.wordpress.com/2011/07/31/pause-and-continue-the-time-with-elapsed-time-vi-in-labview/">here</a>.<br />
3. Pay attention to the documentation, which should be the easiest part to get the credits.<br />
4. If you can <span style="text-decoration:underline;"><em>finish</em></span> the sample exams within<em><span style="text-decoration:underline;"> 4 hours</span></em>, I&#8217;m pretty sure you can <span style="text-decoration:underline;"><em>pass</em></span> the exam. If you can finish that within 3 hours, you can get the full marks in the exam.</p>
<p>Since I didn&#8217;t finish all the functions during the exam, I felt bad about it. But it turned out I got almost full marks in the programming style and the documentation parts, which saved my ass. I didn&#8217;t have the plan to take the CLA before, but now I&#8217;m considering about it.</p>
<p>Good luck to all of you who are going to take the CLD exams.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=197&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/09/10/preparing-for-labview-cld-exam-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>
	</item>
		<item>
		<title>Pause and continue the time with Elapsed time.vi in LabVIEW</title>
		<link>http://foolooo.wordpress.com/2011/07/31/pause-and-continue-the-time-with-elapsed-time-vi-in-labview/</link>
		<comments>http://foolooo.wordpress.com/2011/07/31/pause-and-continue-the-time-with-elapsed-time-vi-in-labview/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 15:03:24 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[CLD]]></category>
		<category><![CDATA[elapsed time]]></category>
		<category><![CDATA[pause]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=186</guid>
		<description><![CDATA[Elapsed Time.vi is a very useful Express vi which returns the elapsed time and can be reseted. Unfortunately there is no pause function in Elapsed Time.vi ( LabVIEW 8.5 to 2009). I had been looking for the examples of pausing and continuing the time in LabVIEW, but there seems not be a simple one. So [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=186&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Elapsed Time.vi is a very useful Express vi which returns the elapsed time and can be reseted. Unfortunately there is no pause function in Elapsed Time.vi ( LabVIEW 8.5 to 2009). I had been looking for the examples of pausing and continuing the time in LabVIEW, but there seems not be a simple one.<br />
So I created this myself. It is not efficient in term of excecution time, but it is simple to be made from scratch and memorized.<br />
<a href="http://foolooo.files.wordpress.com/2011/07/false.png"><img class="aligncenter size-full wp-image-187" title="false" src="http://foolooo.files.wordpress.com/2011/07/false.png?w=600&#038;h=249" alt="" width="600" height="249" /></a><a href="http://foolooo.files.wordpress.com/2011/07/true.png"><img class="aligncenter size-full wp-image-188" title="true" src="http://foolooo.files.wordpress.com/2011/07/true.png?w=600&#038;h=249" alt="" width="600" height="249" /></a><br />
Basically the shift registers are used to store the previous elapsed time. When it is in the false (run) case, the elapsed time is added to the &#8216;total elapsed time&#8217;. When the vi in the true (pause) case, the total elapsed time is transferred to the start time and the Elapsed Time.vi is reseted (stopped). Hope this will be helpful. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;In response to Mark&#8217;s question&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>So I added the reset function for this SubVI:</p>
<p><a href="http://foolooo.files.wordpress.com/2011/07/true1.png"><img class="aligncenter size-full wp-image-194" title="true" src="http://foolooo.files.wordpress.com/2011/07/true1.png?w=600&#038;h=308" alt="" width="600" height="308" /></a></p>
<p><a href="http://foolooo.files.wordpress.com/2011/07/false1.png"><img class="aligncenter size-full wp-image-195" title="false" src="http://foolooo.files.wordpress.com/2011/07/false1.png?w=600&#038;h=308" alt="" width="600" height="308" /></a>When you reset the clock, you simply &#8216;reset&#8217; it and send &#8217;0&#8242; to elapsed time. Hope it helps.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=186&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/07/31/pause-and-continue-the-time-with-elapsed-time-vi-in-labview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/07/false.png" medium="image">
			<media:title type="html">false</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/07/true.png" medium="image">
			<media:title type="html">true</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/07/true1.png" medium="image">
			<media:title type="html">true</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/07/false1.png" medium="image">
			<media:title type="html">false</media:title>
		</media:content>
	</item>
		<item>
		<title>Scrolling the mouse wheel to change values in LabVIEW</title>
		<link>http://foolooo.wordpress.com/2011/07/03/scrolling-the-mouse-wheel-to-change-values-in-labview/</link>
		<comments>http://foolooo.wordpress.com/2011/07/03/scrolling-the-mouse-wheel-to-change-values-in-labview/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 20:46:01 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[mouse wheel]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=172</guid>
		<description><![CDATA[This is a simple demo using the mouse wheel to control the numeric indicator in LabVIEW. The value of the &#8216;mouse wheel position&#8217; increases or decreases when we scroll the mouse wheel forwards or backwards. The reason of posting this is when I tried to using the mouse wheel to control a camera (to zoom [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=172&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a simple demo using the mouse wheel to control the numeric indicator in LabVIEW. The value of the &#8216;mouse wheel position&#8217; increases or decreases when we scroll the mouse wheel forwards or backwards.<br />
The reason of posting this is when I tried to using the mouse wheel to control a camera (to zoom in/out) in LabVIEW, it took me a lot of time finding the right example. If this post happends to be the top 3 of your google results, it should save you some time.<br />
This VI was modified from the example &#8216;Basic Input Demo.vi&#8217; in LabVIEW. Since the windows&#8217;s dll only returns the moved (or related) position of the mouse wheel, a shift register was employed to display the &#8216;absolute&#8217; position.<br />
<a href="http://foolooo.files.wordpress.com/2011/07/mouse-wheel23.png"><img src="http://foolooo.files.wordpress.com/2011/07/mouse-wheel23.png?w=600&#038;h=291" alt="" title="mouse wheel2" width="600" height="291" class="aligncenter size-full wp-image-177" /></a><br />
Sorry that I cannot upload the .vi file for the limitation of wordpress.com. But it is easy enough to re-create this vi yourself from the snippet.<br />
<strong>Note that</strong>:1. There is no &#8216;mouse wheel&#8217; triggering event in the event structure (at least before LabVIEW 2009);<br />
2. The .dll file in &#8216;Acquire input data.vi&#8217; returns only the moved position of the mouse wheel comparing to the position when the dll was called last time;<br />
3. The returned mouse wheel postion was divided by 120 in this demo, which may change according to different mouse setups.<br />
4. The polling event (nodes in the while loop) could be put into the timeout case if you want to use event structure together with it (and the timeout shouldn&#8217;t be -1).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=172&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/07/03/scrolling-the-mouse-wheel-to-change-values-in-labview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/07/mouse-wheel23.png" medium="image">
			<media:title type="html">mouse wheel2</media:title>
		</media:content>
	</item>
		<item>
		<title>Preparing for LabVIEW CLD exam (1)</title>
		<link>http://foolooo.wordpress.com/2011/05/31/preparing-for-labview-cld-exam-1/</link>
		<comments>http://foolooo.wordpress.com/2011/05/31/preparing-for-labview-cld-exam-1/#comments</comments>
		<pubDate>Tue, 31 May 2011 01:20:21 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[CLD]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=167</guid>
		<description><![CDATA[So I registered the CLD (Certified LabVIEW Developer) exam of 5th August. I first used LabVIEW when I started my Ph.D in November 2007 and have been using it for 3 years. My experience of LabVIEW is actually 2 years. In the 3rd year I was just using it instead of learning more things. Since [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=167&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I registered the CLD (Certified LabVIEW Developer) exam of 5th August. I first used LabVIEW when I started my Ph.D in November 2007 and have been using it for 3 years. My experience of LabVIEW is actually 2 years. In the 3rd year I was just using it instead of learning more things. Since it is said that the CLD is suitable for users with experience of &#8220;a year and a half&#8221;, I think it is fair for me to take the exam.<br />
There are 4 exam samples online (<a href="https://lumen.ni.com/nicif/us/ekitcldexmprp/content.xhtml">link</a>) and they are said to be very similar to the actual exam. Also Darren&#8217;s note on CLD is very helpful (<a href="http://labviewartisan.blogspot.com/2009/01/labview-certification-preparing-for-cld.html">link</a>). So my plan is using these exams as simulation and finding the knowledge I&#8217;m lack of. One exam lasts 4 hours and I have to use one weekend to take part. So the examples coulbe finished before end of June (5 weeks to go).<br />
I took the exam &#8220;ATM machine&#8221; one last week and failed to finish it in time. I think that might be the most difficult one among the 4 (or not?). Anyway, fortunetly there is some time to fix that problem. </p>
<p>Here are what I learned from the &#8216;exam&#8217;, and I will add more thoughts as the practice goes on. Hope this is helpful:<br />
1. We do not need to install any module beside LabVIEW to take the test, which tests your coding habit instead of your module experience.<br />
2. The logic of the design is very complicated.<br />
3. For me, the exam could be finished if more time (maybe 2 more hours) were given, but there is not. Thus the challenge is how to finish that in a limited time. You cannot do that without good habits.<br />
4. Use state machine, as stated in the exam. And I found the queue operation is not necessary in these 4 exam samples.<br />
5. The project manager is not needed, for there is only 1 version of your code.<br />
6. Folders named &#8220;SubVI&#8221; and &#8220;COntrol&#8221; are useful. Put the Top_level.vi in the top folder.<br />
7. There could be file read/write functions, and thus we need to master how to manipulate the file path.<br />
8. Draw the states clearly before coding, which saves you a lot of time later (Or, do not code before the logic of states is clear).<br />
9. Because of 8, pens of different colours are very helpful (but is it allowed to bring our own pens?).<br />
10. Set the preference of block diagram a &#8216;comfortable&#8217; way. E.g.  untick Display terminals as icons; untick Show dots at joints; untick Auto wiring; tick Default SubVI terminal as required.<br />
11. Quick drop saves you time.<br />
12. Save the code frequently in case of unknown situations.<br />
13. If you cannot finish the code, create all SubVIs only with front panels. At least the program could be ran (with some missing functions).<br />
14. Knowledge of timed loop and control reference are necessary.</p>
<p>FYI: this is my drawing of the state machine. It will be more messy if a pen of a single colour was used.<br />
<a href="http://foolooo.files.wordpress.com/2011/05/photo-may-25-0-32-23.jpg"><img src="http://foolooo.files.wordpress.com/2011/05/photo-may-25-0-32-23.jpg?w=600&#038;h=448" alt="" title="Photo May 25, 0 32 23" width="600" height="448" class="alignleft size-full wp-image-169" /></a></p>
<p>I will carry on the exam simulation this weekend and my timeline is: finish the state diagram within 1 hour; Create the structure and SubVIs with only terminals and descriptions in 1 hour; try to finish all the functions in 2 hours.</p>
<p>Good luck to me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=167&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/05/31/preparing-for-labview-cld-exam-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/05/photo-may-25-0-32-23.jpg" medium="image">
			<media:title type="html">Photo May 25, 0 32 23</media:title>
		</media:content>
	</item>
		<item>
		<title>Days of PhD (5)</title>
		<link>http://foolooo.wordpress.com/2011/04/11/days-of-phd-5/</link>
		<comments>http://foolooo.wordpress.com/2011/04/11/days-of-phd-5/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 22:21:20 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=162</guid>
		<description><![CDATA[Sorry for the late post. So I have been writing thesis these days (fingers crossed) and did draw some more comics just did upload them. Now here is one of them. Hope you&#8217;ll like it. P.S. I found that there is a lot of potential work for my academic writing. Talk is totally another issue. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=162&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sorry for the late post. So I have been writing thesis these days (fingers crossed) and did draw some more comics just did upload them. Now here is one of them. Hope you&#8217;ll like it.<br />
<a href="http://foolooo.files.wordpress.com/2011/04/dop_5.png"><img src="http://foolooo.files.wordpress.com/2011/04/dop_5.png?w=600&#038;h=800" alt="" title="DOP_5" width="600" height="800" class="alignleft size-full wp-image-163" /></a></p>
<p>P.S. I found that there is a lot of potential work for my academic writing. Talk is totally another issue. Good luck to me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=162&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/04/11/days-of-phd-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/04/dop_5.png" medium="image">
			<media:title type="html">DOP_5</media:title>
		</media:content>
	</item>
		<item>
		<title>Making the number of shift registers programmable</title>
		<link>http://foolooo.wordpress.com/2011/01/27/making-the-number-of-shift-registers-programmable/</link>
		<comments>http://foolooo.wordpress.com/2011/01/27/making-the-number-of-shift-registers-programmable/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 03:47:42 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[architecture]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=151</guid>
		<description><![CDATA[Shift register is very handy in LabVIEW programming. To add one more shift register (say, shift one more time), what you need is only click and drag down the shift register. If you want to recall the data generated in a loop 5 times ago, you drag down 4 more shift registers and pick the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=151&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Shift register is very handy in LabVIEW programming. To add one more shift register (say, shift one more time), what you need is only click and drag down the shift register. If you want to recall the data generated in a loop 5 times ago, you drag down 4 more shift registers and pick the bottom one.<br />
<a href="http://foolooo.files.wordpress.com/2011/01/original.png"><img class="aligncenter size-full wp-image-152" title="original" src="http://foolooo.files.wordpress.com/2011/01/original.png?w=600" alt=""   /></a><br />
But the drawbacks are obvious,<br />
1. It is not neat nor scalable in coding.<br />
2. User cannot modify it without modifying the code.</p>
<p>So here is a alternative method for large/unstable number of shift registers &#8212; using the queue in the loop. The thought was quite straightforward, just to find something that can buffer the data. I&#8217;m sure there are many cleverer ways.</p>
<p><a href="http://foolooo.files.wordpress.com/2011/01/alter2.png"></a><a href="http://foolooo.files.wordpress.com/2011/01/alter1.png"><img class="alignleft size-full wp-image-160" title="alter" src="http://foolooo.files.wordpress.com/2011/01/alter1.png?w=600&#038;h=259" alt="" width="600" height="259" /></a><br />
<a href="http://foolooo.files.wordpress.com/2011/01/alter21.png"><img class="alignleft size-full wp-image-156" title="alter2" src="http://foolooo.files.wordpress.com/2011/01/alter21.png?w=600&#038;h=259" alt="" width="600" height="259" /></a></p>
<p>So the queue is used to store the data. With enqueuing and dequeuing we can do the shifting. The case structure is to determine if we shifted the right number, and the condition can be modified (e.g. if(get queue state==#shift regisiters) ).</p>
<p>The problem is solved now. Please let me know if you got better solutions:)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=151&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/01/27/making-the-number-of-shift-registers-programmable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/original.png" medium="image">
			<media:title type="html">original</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/alter1.png" medium="image">
			<media:title type="html">alter</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/alter21.png" medium="image">
			<media:title type="html">alter2</media:title>
		</media:content>
	</item>
		<item>
		<title>7 sins of IMAQ module</title>
		<link>http://foolooo.wordpress.com/2011/01/10/7-sins-of-imaq-module/</link>
		<comments>http://foolooo.wordpress.com/2011/01/10/7-sins-of-imaq-module/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 01:08:05 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[IMAQ]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=138</guid>
		<description><![CDATA[I have been using IMAQ module in LabVIEW these days, and the integration of many algorithms saved me a lot of time. It is the core module when we want to do Machine Vision. I haven&#8217;t digged into it since the subset seems OK for my job. But in this post I&#8217;m not saying the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=138&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been using IMAQ module in LabVIEW these days, and the integration of many algorithms saved me a lot of time. It is the core module when we want to do Machine Vision. I haven&#8217;t digged into it since the subset seems OK for my job. But in this post I&#8217;m not saying the beauty of it, instead, I&#8217;m going to tell seven sins of the IMAQ module. Just to clarify, I splitted some up in order to make it &#8220;7&#8243;. All the problems are based on vision development module 2009.</p>
<p><strong>1. It has to be in IMAQ. </strong>Sometime I just want a simple &#8220;2D array filter&#8221; to proceed my 2D data, but there is no such a node in the core functions, although I though it&#8217;s not complex. And the fact is, if I want to proceed my raw 2D array in any &#8216;image&#8217; way, I have to buy and call IMAQ module to do that, plus conversion back and forth. That&#8217;s not handy.</p>
<p><strong>2.  Non-standard connector layout. </strong>Here is the connector  layout:<br />
<a href="http://foolooo.files.wordpress.com/2011/01/fp1.png"><img class="aligncenter size-full wp-image-144" title="fp" src="http://foolooo.files.wordpress.com/2011/01/fp1.png?w=600" alt=""   /></a><br />
It&#8217;s not using standard 4224 layout pattern, and the wiring becomes a chaos in this case.</p>
<p><strong>3. Old style front panel.</strong> Here is the front panel comparison of the &#8220;IMAQ create.vi&#8221; and &#8220;Open/Create/Replace file.vi&#8221;</p>
<p><a href="http://foolooo.files.wordpress.com/2011/01/create-file-fp.png"></a><a href="http://foolooo.files.wordpress.com/2011/01/imaq-fp.png"></a><a href="http://foolooo.files.wordpress.com/2011/01/create-file-fp1.png"><img class="size-full wp-image-142 alignnone" title="Create file FP" src="http://foolooo.files.wordpress.com/2011/01/create-file-fp1.png?w=600" alt=""   /></a><img class="size-full wp-image-141 alignnone" title="IMAQ FP" src="http://foolooo.files.wordpress.com/2011/01/imaq-fp.png?w=600" alt=""   /></p>
<p>As you can see, the controls and indicators are different in two VIs. So if we have IMAQ VIs with other VIs in the same top level, we will have diffrent front panel controls if we just create controls by right clicking.</p>
<p><strong>4.</strong> &#8220;<a href="http://forums.ni.com/t5/LabVIEW-Idea-Exchange/IMAQ-VI-s-should-support-all-image-types-which-makes-sense/idi-p/1092734" target="_blank">IMAQ VIs should support all image types which makes sense</a>&#8221; as described in the NI idea exchange.</p>
<p><strong>5. Along with the last sin, there is no boolean array input/ output</strong> in &#8220;IMAQ ArrayToImage.vi&#8221; and &#8220;IMAQ ImageToArray.vi&#8221;. Actually boolean 2D array is quite useful in many pattern recognization applications. (Yeah, this is the extra sin I just divided from last one)</p>
<p><strong>6. &#8220;Image Dsc Out&#8221; missing in some VIs.</strong> E.g, after the proceeding of the image and we want to convert it back to an array, do we need to release the buffer we created? If yes, there is no such a connector on the output. I assume all the VI without the &#8220;Image out&#8221; connector is to be used as indicators, but still, it&#8217;s better to keep it uniform.</p>
<p><a href="http://foolooo.files.wordpress.com/2011/01/image2array.png"><img class="aligncenter size-full wp-image-146" title="image2array" src="http://foolooo.files.wordpress.com/2011/01/image2array.png?w=600" alt=""   /></a><strong>7. We have to create buffer to manipulate images.</strong> In this module it&#8217;s not as smart as in Array functions, we need to create one buffer to proceed an image, mutiple buffers for mutiple ones (or, use one buffer one by one). It would be nicer if NI can make this easier.</p>
<p>Anyway, IMAQ is a very useful module and hope I&#8217;ll study ultilize it better in the future.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=138&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2011/01/10/7-sins-of-imaq-module/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/fp1.png" medium="image">
			<media:title type="html">fp</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/create-file-fp1.png" medium="image">
			<media:title type="html">Create file FP</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/imaq-fp.png" medium="image">
			<media:title type="html">IMAQ FP</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2011/01/image2array.png" medium="image">
			<media:title type="html">image2array</media:title>
		</media:content>
	</item>
		<item>
		<title>微博的瞬时记忆</title>
		<link>http://foolooo.wordpress.com/2010/12/28/%e5%be%ae%e5%8d%9a%e7%9a%84%e7%9e%ac%e6%97%b6%e8%ae%b0%e5%bf%86/</link>
		<comments>http://foolooo.wordpress.com/2010/12/28/%e5%be%ae%e5%8d%9a%e7%9a%84%e7%9e%ac%e6%97%b6%e8%ae%b0%e5%bf%86/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 05:57:09 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[垃圾话]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=130</guid>
		<description><![CDATA[我不喜欢鸡，是因为我小时候到奶奶家，曾亲眼看过杀鸡的场景。那是一群，我伯父取向其中最肥的一只，其它几只纷纷逃窜。但是没走几步，就又开始悠哉的吃食了。那只鸡被反掐住脖子，刀子一划便在滴血，扑腾了几下就挂掉了。之后是拔毛，刨腹，把肠子肚子什么拉出来丢到桶里。我清楚地记得有一只鸡溜达回来，看到桶里的肠子就很快地叼走了。我想，鸡的记忆是瞬时的吧？几秒钟的恐惧被食物的吸引冲淡了，也忘掉刚才沦为刀下鬼的是自己的同伴，或可能就是它自己。 前几天看到两篇文章，一个是《南方人物周刊2010年度人物——微博客》，一个是《娱乐至死》，是讨论微博和娱乐的。我最近的主要“娱乐”就是微博了。其实我上微博的目的很简单，ID叫@科学玩家，想找一些志同道合的人，谈谈技术，谈谈科学。后来接触的人多了，信息也杂了起来。我还是尽量的保持不被“琐事”所累，一门心思地读圣贤书。但谁也无法独善其身，大量的信息扑面而来的时候，你想不关注也不行的。于是，像我这么消息不灵通的人，也几乎第一时间知道了王家岭矿难，玉树地震，南京化工厂爆炸，舟曲泥石流，李刚之子事件，到最近的乐清碾人事件。 我开始是漠不关心，后来偶尔跟着喊一喊，掉掉眼泪，到一度的情绪高涨，大有愤青的模样了。但是喊完也就喊完了，骂够了，舒服了，日子该过还是得过，我的论文还是要赶紧写出来。而事件中那些人的日子如何了，就和我没什么关系了。我可以煞有介事地大谈特谈舆论监管，跟着便是冷笑话和萌物，前一条慨叹民生疾苦，后一条秀新买的数码。情绪和思维的切换达到前所未有的速度，比Alt-Tab来的快多了。 这或许就是微博里面体现的，微信息，微思考。我可以被短短140字打动，之后又投入到另一140字的情景中。《娱乐至死》的漫画里，奥威尔预言权威会打压舆论，禁止信息的流动，从而达到控制人民思想的目的；赫胥黎预言权威们会倾倒大量的“垃圾”信息，混杂到“有威胁性”的信息中，叫你无暇分辨，无心思考。“奥兹曼认为，对未来作出正确预测的，不是奥威尔，而是赫胥黎”是这篇漫画的最后一句。我比较“乐观地”认为，欧美等政府是在按照赫胥黎的想法出牌，而中国政府还是采取比较低级的打压政策。 或者说，我国人民除了面对上面的压力之外，自己也在主动地将信息遗忘在海量的娱乐中？ 我不提倡大家过苦行僧搬的生活，或者每天苦大仇深地要如何如何。仇恨永远不该成为主旋律，我希望大家都能幸福，至少认为自己幸福。但是如果某事触动了你敏感的神经，让你真的为之一震，我们也应该把这个事儿当个事儿了，不要骂娘声刚落，立刻又幸福了起来。因为这个幸福是短暂的，是廉价的。同样廉价的还有莫名的惊恐和愤怒，虽然真相往往掌握在有关部门手里，但这不该成为我们看到菜刀边哭喊着四处逃窜，菜刀收起来就放心吃食的理由。如果我没有将事情解决的能力，那我至少保持着关注，看看别人是如何解决，或到底有没有解决。 舆论的力量是强大的，同时也是短暂而脆弱的。如果我是王家岭矿难某遇险矿工的妻子，我会很欣慰地看到网上关于此事铺天盖地的曝光。仿佛一群素未谋面的街坊四邻，敲锣打鼓地从四面八方出现，呜呜泱泱地要去衙门讨公道，或去找青天大老爷。然后短短数日，听说玉树地震，于是这群热情的邻里们又吹着喇叭走掉了，剩下茫然的寡妇和她背后的笑声。 就在昨天，看到微博上一个MM在喊，她的20岁的年轻同学因政府建设用地的事，被政府的人围殴死了。也就在她一系列的@后面，跟了几条“没的美剧追了，该追韩剧”的感慨(现已删除)。那我想，这位同学的记忆也是短暂的吧？像我一样。 我做个预言的话，或者我的这个文章石沉大海，不足以激起共鸣的浪花；或者会被转，有人会感慨，共鸣，然后下一条是星座运势，或厨房秘籍了。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=130&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>我不喜欢鸡，是因为我小时候到奶奶家，曾亲眼看过杀鸡的场景。那是一群，我伯父取向其中最肥的一只，其它几只纷纷逃窜。但是没走几步，就又开始悠哉的吃食了。那只鸡被反掐住脖子，刀子一划便在滴血，扑腾了几下就挂掉了。之后是拔毛，刨腹，把肠子肚子什么拉出来丢到桶里。我清楚地记得有一只鸡溜达回来，看到桶里的肠子就很快地叼走了。我想，鸡的记忆是瞬时的吧？几秒钟的恐惧被食物的吸引冲淡了，也忘掉刚才沦为刀下鬼的是自己的同伴，或可能就是它自己。</p>
<p>前几天看到两篇文章，一个是<a href="http://news.sina.com.cn/m/sd/2010-12-24/105221700414.shtml" target="_blank">《南方人物周刊2010年度人物——微博客》</a>，一个是<a href="http://www.moeu.net/post/694.html" target="_blank">《娱乐至死》</a>，是讨论微博和娱乐的。我最近的主要“娱乐”就是微博了。其实我上微博的目的很简单，ID叫<a href="http://t.sina.com.cn/foolooo" target="_blank">@科学玩家</a>，想找一些志同道合的人，谈谈技术，谈谈科学。后来接触的人多了，信息也杂了起来。我还是尽量的保持不被“琐事”所累，一门心思地读圣贤书。但谁也无法独善其身，大量的信息扑面而来的时候，你想不关注也不行的。于是，像我这么消息不灵通的人，也几乎第一时间知道了王家岭矿难，玉树地震，南京化工厂爆炸，舟曲泥石流，李刚之子事件，到最近的乐清碾人事件。</p>
<p>我开始是漠不关心，后来偶尔跟着喊一喊，掉掉眼泪，到一度的情绪高涨，大有愤青的模样了。但是喊完也就喊完了，骂够了，舒服了，日子该过还是得过，我的论文还是要赶紧写出来。而事件中那些人的日子如何了，就和我没什么关系了。我可以煞有介事地大谈特谈舆论监管，跟着便是冷笑话和萌物，前一条慨叹民生疾苦，后一条秀新买的数码。情绪和思维的切换达到前所未有的速度，比Alt-Tab来的快多了。</p>
<p>这或许就是微博里面体现的，微信息，微思考。我可以被短短140字打动，之后又投入到另一140字的情景中。《娱乐至死》的漫画里，奥威尔预言权威会打压舆论，禁止信息的流动，从而达到控制人民思想的目的；赫胥黎预言权威们会倾倒大量的“垃圾”信息，混杂到“有威胁性”的信息中，叫你无暇分辨，无心思考。“奥兹曼认为，对未来作出正确预测的，不是奥威尔，而是赫胥黎”是这篇漫画的最后一句。我比较“乐观地”认为，欧美等政府是在按照赫胥黎的想法出牌，而中国政府还是采取比较低级的打压政策。<br />
或者说，我国人民除了面对上面的压力之外，自己也在主动地将信息遗忘在海量的娱乐中？</p>
<p>我不提倡大家过苦行僧搬的生活，或者每天苦大仇深地要如何如何。仇恨永远不该成为主旋律，我希望大家都能幸福，至少认为自己幸福。但是如果某事触动了你敏感的神经，让你真的为之一震，我们也应该把这个事儿当个事儿了，不要骂娘声刚落，立刻又幸福了起来。因为这个幸福是短暂的，是廉价的。同样廉价的还有莫名的惊恐和愤怒，虽然真相往往掌握在有关部门手里，但这不该成为我们看到菜刀边哭喊着四处逃窜，菜刀收起来就放心吃食的理由。如果我没有将事情解决的能力，那我至少保持着关注，看看别人是如何解决，或到底有没有解决。</p>
<p>舆论的力量是强大的，同时也是短暂而脆弱的。如果我是王家岭矿难某遇险矿工的妻子，我会很欣慰地看到网上关于此事铺天盖地的曝光。仿佛一群素未谋面的街坊四邻，敲锣打鼓地从四面八方出现，呜呜泱泱地要去衙门讨公道，或去找青天大老爷。然后短短数日，听说玉树地震，于是这群热情的邻里们又吹着喇叭走掉了，剩下茫然的寡妇和她背后的笑声。<br />
就在昨天，看到微博上一个MM在喊，她的20岁的年轻同学因政府建设用地的事，被政府的人围殴死了。也就在她一系列的@后面，跟了几条“没的美剧追了，该追韩剧”的感慨(现已删除)。那我想，这位同学的记忆也是短暂的吧？像我一样。</p>
<p>我做个预言的话，或者我的这个文章石沉大海，不足以激起共鸣的浪花；或者会被转，有人会感慨，共鸣，然后下一条是星座运势，或厨房秘籍了。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=130&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2010/12/28/%e5%be%ae%e5%8d%9a%e7%9a%84%e7%9e%ac%e6%97%b6%e8%ae%b0%e5%bf%86/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing the music with the spark gap</title>
		<link>http://foolooo.wordpress.com/2010/12/17/playing-the-music-with-the-spark-ga/</link>
		<comments>http://foolooo.wordpress.com/2010/12/17/playing-the-music-with-the-spark-ga/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 01:09:23 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[Gadget]]></category>
		<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Science & Technique]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=127</guid>
		<description><![CDATA[I posted an article &#60;Play the music with your DAQ card&#62; some days ago. It saves you when you have no sound card but only a data acquisition card to play the music (and you&#8217;re welcome:)). Now what if you have no speaker but only a Jacob&#8217;s Ladder?  We borrowed a Jacob&#8217;s Ladder from the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=127&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I posted an article &lt;<a href="http://foolooo.wordpress.com/2010/11/26/play-the-music-with-your-daq-card/" target="_blank">Play the music with your DAQ card</a>&gt; some days ago. It saves you when you have no sound card but only a data acquisition card to play the music (and you&#8217;re welcome:)). Now what if you have no speaker but only a <a href="http://tesladownunder.com/JacobsLadder.htm" target="_blank">Jacob&#8217;s Ladder</a>?  We borrowed a Jacob&#8217;s Ladder from the physics department and had a play with it. Using the electric arc we are able to play the tunes!<br />
This is the video I uploaded in youtube, please help yourself:)</p>
<span style="text-align:center; display: block;"><a href="http://foolooo.wordpress.com/2010/12/17/playing-the-music-with-the-spark-ga/"><img src="http://img.youtube.com/vi/pTe_pGYcpnk/2.jpg" alt="" /></a></span>
<p>For the people who are <em>not convinient </em>to browse youtube, you can also find it in <a href="http://www.tudou.com/programs/view/RdgC_3g_HoE/" target="_blank">this link </a>(tudou.com, a video server in China).<br />
Sorry I didn&#8217;t edit this phone recorded video, and you have to rotate your head to the left to view it. So we converted the sound file to a sequence of train pulses in LabVIEW, which triggers the Jacob&#8217;s Ladder to genenrate sparks. By changing the duty cycle and the frequency of the pulses, we are able to change the volumes and tunes.</p>
<p>P.S. We are not playing all the music, for the tune and pace range of the Jacob&#8217;s Ladder is very limited. It only makes the sound when the electric arc appears.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=127&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2010/12/17/playing-the-music-with-the-spark-ga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>
	</item>
		<item>
		<title>Return the bigger values of 2 arrays</title>
		<link>http://foolooo.wordpress.com/2010/12/10/return-the-bigger-values-of-2-arrays/</link>
		<comments>http://foolooo.wordpress.com/2010/12/10/return-the-bigger-values-of-2-arrays/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 23:04:26 +0000</pubDate>
		<dc:creator>foolooo</dc:creator>
				<category><![CDATA[LabVIEW]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://foolooo.wordpress.com/?p=121</guid>
		<description><![CDATA[I came up with a similar question (&#60;Return #elements of an array greater than a certain value&#62;) before, and today this one &#8220;What&#8217;s the efficient way of comparing 2 arrays and returning an array with the bigger values?&#8221; was posted in gsdzone.net forum. This is not a complex problem and many responses were given. But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=121&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came up with a similar question (&lt;<a href="http://foolooo.wordpress.com/2010/09/20/return-elements-of-an-array-smaller-than-a-certain-value/">Return #elements of an array greater than a certain value</a>&gt;) before, and today this one &#8220;<a href="http://bbs.gsdzone.net/showtopic-6076.aspx">What&#8217;s the efficient way of comparing 2 arrays and returning an array with the bigger values</a>?&#8221; was posted in gsdzone.net forum.</p>
<p>This is not a complex problem and many responses were given. But all of them suggested using a <em>for loop</em> to compare the elements one by one. Most of the <em>comparison </em>and <em>numeric</em> nodes in LabVIEW are polymorphic and we should take use of them efficiently. I tried the following code and it works <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:center;"><a href="http://foolooo.files.wordpress.com/2010/12/compare.png"><img class="size-full wp-image-122 aligncenter" title="compare" src="http://foolooo.files.wordpress.com/2010/12/compare.png?w=600" alt=""   /></a><a href="http://foolooo.files.wordpress.com/2010/12/compare2.png"><img class="aligncenter size-full wp-image-123" title="compare2" src="http://foolooo.files.wordpress.com/2010/12/compare2.png?w=600" alt=""   /></a>So a single <em>Max &amp; Min</em> node can do the job.</p>
<p>A thought that may or may not be helpful (or even correct!) in optimization: <strong>Always try to do it with polymorphic nodes when you did it with a loop; always try to do it in one loop when you did it with several loops.</strong><br />
Thanks to rogel who brought up this problem.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foolooo.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foolooo.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foolooo.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foolooo.wordpress.com&amp;blog=14764097&amp;post=121&amp;subd=foolooo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://foolooo.wordpress.com/2010/12/10/return-the-bigger-values-of-2-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2dfb5f3f6936aacb1bc47ecac6a92853?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foolooo</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2010/12/compare.png" medium="image">
			<media:title type="html">compare</media:title>
		</media:content>

		<media:content url="http://foolooo.files.wordpress.com/2010/12/compare2.png" medium="image">
			<media:title type="html">compare2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
