<?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>.:Doing my little part, changing the world:. &#187; Programming</title>
	<atom:link href="http://bono02.wordpress.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://bono02.wordpress.com</link>
	<description>I want to change the world! I have my part!</description>
	<lastBuildDate>Sun, 23 Aug 2009 08:03:21 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bono02.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d6b49e06335a94b8ce6115b9d1952986?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>.:Doing my little part, changing the world:. &#187; Programming</title>
		<link>http://bono02.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bono02.wordpress.com/osd.xml" title=".:Doing my little part, changing the world:." />
		<item>
		<title>Maxon EPOS with CANOpen</title>
		<link>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/</link>
		<comments>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 12:44:30 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[Communication]]></category>
		<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/?p=48</guid>
		<description><![CDATA[Any of you who is using EPOS from MAXON motor and LabVIEW Real-Time might face the same problem with me. The RS232 -IMHO- is not fast enough to achieve real-time communication between the EPOS and RT controller, also I am using the LV-RT for the main program, thus it will be difficult to synchronize between [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=48&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Any of you who is using <a href="http://www.google.com/search?q=EPOS+Maxon&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a">EPOS</a> from MAXON motor and LabVIEW Real-Time might face the same problem with me. The RS232 -IMHO- is not fast enough to achieve real-time communication between the EPOS and RT controller, also I am using the LV-RT for the main program, thus it will be difficult to synchronize between two LVs program from two different computers which mainly caused by the communication overhead. The problem got worse when I knew that we could not download the EPOS dll file onto the RT.  After getting my <a href="http://forums.ni.com/ni/board/message?board.id=240&amp;message.id=5801&amp;requireLogin=False">answer</a> from NI forum, I decided to use the CAN Protocol which can reach up to 1Mbps.</p>
<p><a title="CANOpen Terminate 120 Ohm" href="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg"><img src="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg?w=836&#038;h=396" alt="CANOpen Terminate 120 Ohm" width="836" height="396" /></a></p>
<p>For the first trial, we have the IXXAT CAN-USB device. The question is, how to interface USB device to the RT? Because if I use this device, then it will be RT &lt;-&gt; USB &lt;-&gt; CAN, which means that I need a driver for IXXAT CAN-USB for the RT! I emailed the IXXAT company, the engineer replied that they do not support the LV-RT. Anyway I successfully  send command through CANOpen with this device on Windows platform, but <span id="more-48"></span>it took 1 day for me to realize that I need to terminate the final CAN-bus with 120 Ohm. Fiuhh.. <a href="http://en.wikipedia.org/wiki/Alhamdulillah">alhamdulillah</a> it was working though <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="CANOpen Terminate 120 Ohm" href="http://bono02.files.wordpress.com/2008/02/img_0153.jpg"><img src="http://bono02.files.wordpress.com/2008/02/img_0153.jpg" alt="CANOpen Terminate 120 Ohm" /></a></p>
<p>Then we bought the NI-CAN PXI 2 Port  from NI with the OPENCan library. I successfully controlled the speed of the BLDC motor with the CANOPen using SDO only, but then I realized that there was a big delay between two SDO commands, which resulted almost 100% error (current speed &#8211; desired speed), currently I am going to write a new program by using both SDO and PDO.</p>
<p>I -insyaAllah- will continue this writing and explain briefly about SDO &amp; PDO especially in the case of Maxon EPOS.</p>
<p>Monday, 4/feb/2007 @ 20:52 KST</p>
<p>The definition of CAN and CANOpen  can be found by yourself in google <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I will explain briefly what I have learned, the CANOpen method to control the Maxon Motor using EPOS, for more detail you can read the EPOS Application Note: CANOpen Basic Information (pdf).</p>
<p>In EPOS there is an <strong>important</strong> dictionary (the source of everything), called <strong>Object Dictionary</strong> <strong>Access</strong>. It contains the System parameter (e.g. PID tuning value, velocity, etc), the DataRecorder(Encoder counter, etc), and so on. To control the motor, these parameters need to be changed. We can change the value by 3 methods:</p>
<ol>
<li>Directly click the field (of the column)  and enter the desired value</li>
<li>Using the Serial communication RS232  protocol</li>
<li>CANOpen protocol</li>
</ol>
<p>In the case of 1, you must be joking, but if you want to do it manually, no one can blame on you =P. The 2nd method, I have explained above, that it is not possible if we want to utilize the LabView RT, because there is a dll file which does not support the RT so it can not be downloaded onto the RT, unless you know how to reverse engineer this file and re-write your own code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Now the 3rd method, with CANOpen there are 2 ways of writing the object dictionary access:</p>
<p>#1 is SDO (Service Data Object). It is a confirmed service, means that after you send the command, in between the  timeout value you specified, there will be a confirmation packet which contains the value whether you successfully write the object or not.</p>
<p>#2 is PDO (Process Data Object). Opposite to the SDO, it is unconfirmed, thus it is very fast. But as a trade off, there are a &#8220;little&#8221; work to do, which is the PDO mapping.</p>
<p>At first time, I am using the SDO only, the problem is that, there is a big gap between sending the packet and receiving the confirmation packet, thus it become less real-time and worse, the data is not valid (I am writing a quite time critical program) .</p>
<p>Here&#8217;s some picture with SDO only:</p>
<p><a title="EPOS with SDO Only" href="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg"><img src="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg" alt="EPOS with SDO Only" /></a></p>
<p>If you take a look at the picture above the error looks very big, I guess it is caused by the delay of the SDO packets.</p>
<p><a title="Maxon MOTOR with PDO access" href="http://bono02.files.wordpress.com/2008/02/pdo.jpg"><img src="http://bono02.files.wordpress.com/2008/02/pdo.jpg" alt="Maxon MOTOR with PDO access" /></a></p>
<p>And in the above picture the error is very small with PDO packets.</p>
<p>And here is the video, if you need the code just write me a comment or send an email <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is an example program to initialize the Maxon EPOS through CANOpen. To be noted that the maxon UI Interface is always on when the lv program is running. Download <a href="http://bono02.files.wordpress.com/2008/06/epos_sdo_initzip.pdf">here</a> (rename the file to become .zip)!</p>
<p><span style="text-align:center; display: block;"><a href="http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/"><img src="http://img.youtube.com/vi/Kr5t9HlvVHg/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=48&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2008/02/03/maxon-epos-with-canopen/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/maxon-canopen.jpg" medium="image">
			<media:title type="html">CANOpen Terminate 120 Ohm</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/img_0153.jpg" medium="image">
			<media:title type="html">CANOpen Terminate 120 Ohm</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/sdo_only.jpg" medium="image">
			<media:title type="html">EPOS with SDO Only</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2008/02/pdo.jpg" medium="image">
			<media:title type="html">Maxon MOTOR with PDO access</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/Kr5t9HlvVHg/2.jpg" medium="image" />
	</item>
		<item>
		<title>RC servo motor with labview</title>
		<link>http://bono02.wordpress.com/2007/11/22/rc-servo-motor-with-labview/</link>
		<comments>http://bono02.wordpress.com/2007/11/22/rc-servo-motor-with-labview/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 08:45:43 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[LabView Real-Time]]></category>
		<category><![CDATA[RC Servo]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/2007/11/22/rc-servo-motor-with-labview/</guid>
		<description><![CDATA[Another basic article. My first time with LabView Real-Time. I decided to write a program to control an R/C servo motor with LV-RT. With PXI-7358, I decided to use the digital I/O, just by turning on and off the port according to the time constraint. I did not read the manual in detail, so I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=40&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Another basic article. My first time with LabView Real-Time. I decided to write a program to control an <a href="http://www.seattlerobotics.org/guide/servos.html" title="RC Servo Motor">R/C servo motor</a> with LV-RT. With PXI-7358, I decided to use the digital I/O, just by turning on and off the port according to the time constraint. I did not read the manual in detail, so I am afraid I missed something, but when I did a test how long the time took for turning the digital port from on to off was around 1.5 ms, and from on to off took 250 uS. It means that it is not possible to drive the R/C servo with digital I/O when the pulse needed should be between 200-2500 uS.</p>
<p>Here&#8217;s the code when I did a measurement on the time of digital I/O switching on-off:<span id="more-40"></span></p>
<p><a href="http://bono02.files.wordpress.com/2007/11/momo.jpg" title="Must On Must Off"><img src="http://bono02.files.wordpress.com/2007/11/momo.jpg" alt="Must On Must Off" /></a></p>
<p>I decided to utilize the PWM port. The algorithm is: turning <b>on 100% PWM -&gt; delay X uS -&gt; turn on 0% PWM -&gt; delay 10 ms (minimum)</b>, where X is the delay for the position desired, and then the servo could run smoothly.</p>
<p>Here&#8217;s the code:</p>
<p><a href="http://bono02.files.wordpress.com/2007/11/servo-lvrt.jpg" title="Servo Real-Time"><img src="http://bono02.files.wordpress.com/2007/11/servo-lvrt.jpg" alt="Servo Real-Time" /></a></p>
<p>As usual, for documentary (maybe when I am old I could see what I did in my &#8220;spare&#8221; time -hopefully not wasting my time-), here&#8217;s the video:</p>
<p><span style="text-align:center; display: block;"><a href="http://bono02.wordpress.com/2007/11/22/rc-servo-motor-with-labview/"><img src="http://img.youtube.com/vi/Ww9riLlArVw/2.jpg" alt="" /></a></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/40/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/40/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=40&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2007/11/22/rc-servo-motor-with-labview/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/11/momo.jpg" medium="image">
			<media:title type="html">Must On Must Off</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/11/servo-lvrt.jpg" medium="image">
			<media:title type="html">Servo Real-Time</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/Ww9riLlArVw/2.jpg" medium="image" />
	</item>
		<item>
		<title>Stepper Motor With LabVIEW</title>
		<link>http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/</link>
		<comments>http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 03:59:25 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Stepper Motor]]></category>
		<category><![CDATA[ULN2803]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/</guid>
		<description><![CDATA[Again, still LabVIEW beginner.   I am currently reading an ebook titled &#8220;LabVIEW based Advanced Instrumentation System&#8221; by S. Sumanthi and P. Surekha, and IMHO this is a good book for beginner. I wish I could finish reading this book as soon as possible, because time is what I do not have  
Two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=36&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Again, still LabVIEW beginner. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I am currently reading an ebook titled <i>&#8220;LabVIEW based Advanced Instrumentation System&#8221;</i> by S. Sumanthi and P. Surekha, and IMHO this is a good book for beginner. I wish I could finish reading this book as soon as possible, because time is what I do not have <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Two days ago, I tried to control a stepper motor with ULN2803 and LabVIEW. FYI -again- I am new to LabVIEW, so don&#8217;t expect too much from this article. I have NI-PCI 6221 and NI-PXI 7358 with me, the later is specifically manufactured for motion controller but still it has the digital I/O. And in this article I am using the motion controller digital I/O to control the stepper, if you only have DAQmx you also still can use it to drive your stepper motor, because to control stepper motor only need digital output which you can generate from your DAQmx.</p>
<p>Here&#8217;s the LV source code:</p>
<p><span id="more-36"></span>This is the front panel where user can specify the speed, direction, number full step. In this case, I am using 1.8 degree stepper motor, which means for one full rotation I need 360/1.8 = 200 steps, then 200 steps/4 = 50 times iteration.</p>
<p><a href="http://bono02.files.wordpress.com/2007/11/stepper-front-panel.jpg" title="Stepper Front Panel"><img src="http://bono02.files.wordpress.com/2007/11/stepper-front-panel.jpg" alt="Stepper Front Panel" /></a></p>
<p>This is the source code when all condition is true:</p>
<p><a href="http://bono02.files.wordpress.com/2007/11/stepper-inside.jpg" title="Stepper Inside Panel"><img src="http://bono02.files.wordpress.com/2007/11/stepper-inside.jpg" alt="Stepper Inside Panel" height="372" width="665" /></a></p>
<p>This is the source code when all condition is false:<a href="http://bono02.files.wordpress.com/2007/11/stepper-inside-false.jpg" title="Stepper Inside Panel"><img src="http://bono02.files.wordpress.com/2007/11/stepper-inside-false.jpg" alt="Stepper Inside Panel" height="381" width="667" /></a></p>
<p>Here&#8217;s the video for the trial:</p>
<p><span style="text-align:center; display: block;"><a href="http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/"><img src="http://img.youtube.com/vi/MxQNt1KCR6s/2.jpg" alt="" /></a></span></p>
<p>and I tried to test the accurateness of this stepper motor for one full cycle (50 iterations) you can watch here:</p>
<p><span style="text-align:center; display: block;"><a href="http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/"><img src="http://img.youtube.com/vi/50nF-919lx0/2.jpg" alt="" /></a></span></p>
<p>This stepper motor is not that accurate, for 2-3 trials it was okay but the next trial it lost its position, I tried several times and it still can not maintained its previous position, even though I used slower speed.</p>
<p>And here is the electronic connection I used for the ULN2803 you can find <a href="http://madan.wordpress.com/2006/06/29/exact-circuit-and-microc-code-for-stepper-motor/">here</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=36&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2007/11/04/stepper-motor-with-labview/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/11/stepper-front-panel.jpg" medium="image">
			<media:title type="html">Stepper Front Panel</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/11/stepper-inside.jpg" medium="image">
			<media:title type="html">Stepper Inside Panel</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/11/stepper-inside-false.jpg" medium="image">
			<media:title type="html">Stepper Inside Panel</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/MxQNt1KCR6s/2.jpg" medium="image" />

		<media:content url="http://img.youtube.com/vi/50nF-919lx0/2.jpg" medium="image" />
	</item>
		<item>
		<title>Another Simple LabView Program (PWM)</title>
		<link>http://bono02.wordpress.com/2007/10/16/another-simple-labview-program-pwm/</link>
		<comments>http://bono02.wordpress.com/2007/10/16/another-simple-labview-program-pwm/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 09:01:38 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Graphical Programming]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/2007/10/16/another-simple-labview-program-pwm/</guid>
		<description><![CDATA[Yesterday, I tried to control a stepper motor using the L297 IC driver, but then I realized that I need another IC which could drive high current to the motor, similar to darlington transistor arrays. The ICs are being purchased at the moment for the need of lab experiment taught by my friend.
Oh well, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=31&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday, I tried to control a stepper motor using the L297 IC driver, but then I realized that I need another IC which could drive high current to the motor, similar to darlington transistor arrays. The ICs are being purchased at the moment for the need of lab experiment taught by my friend.</p>
<p>Oh well, I decided to learn how to generate a simple PWM in PCI-6221 on LabView -as you know I am always new in this, too many functions available, and I am not used to graphical programming-.</p>
<p>I utilized the counter 0 (DevX/ctr0) to turn on a LED (light emitting diode) that it will flicker according to the signal given. For this card the LED is located on PFI 12 (pin number 2).</p>
<p>Here is the front panel, where user can interact with the program:<span id="more-31"></span></p>
<p><a title="PWM Front Panel" href="http://bono02.files.wordpress.com/2007/10/pwm-front-panel.jpg"><img src="http://bono02.files.wordpress.com/2007/10/pwm-front-panel.jpg" alt="PWM Front Panel" /></a></p>
<p>and here is the back panel for the main flow program:</p>
<p><a title="PWM Back Panel" href="http://bono02.files.wordpress.com/2007/10/pwm-back-panel.jpg"><img src="http://bono02.files.wordpress.com/2007/10/pwm-back-panel.jpg" alt="PWM Back Panel" /></a></p>
<p>I still not yet have the LabView Real-Time with me, my boss said it will arrive tomorrow. This program is written with LV 8.2 with the minimum delay is 1 ms. If you analyze the back panel above, when there&#8217;s a value change in the control form (the meter and vertical bar)  for different duty cycle or frequency, the  value will be updated inside the case structure. You can experiment by changing the duty cycle and frequency, and then look at the flicker rate and intensity of the LED.</p>
<p>If you removed the timed loop and changed with while loop, a problem will occur if the value change in the control form is faster that one period of loop cycle, thus LabView Run-Time will generate an error message. The reason is that, the changing is lot faster that one cycle loop which is 1 ms. With this timed loop, unnecessary changing is discarded, only values which are between the right time slot considered as input. If error happened the LED on front panel will be on.</p>
<p>If you don&#8217;t understand my explanation, you can download the vi program <a title="Simple PWM LabView 8.2" href="http://bono02.files.wordpress.com/2007/10/pwm-simplerar.pdf">here</a> (remove the .pdf extension).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=31&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2007/10/16/another-simple-labview-program-pwm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/10/pwm-front-panel.jpg" medium="image">
			<media:title type="html">PWM Front Panel</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/10/pwm-back-panel.jpg" medium="image">
			<media:title type="html">PWM Back Panel</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming style for NI instruments</title>
		<link>http://bono02.wordpress.com/2007/09/25/programming-style-for-ni-instruments/</link>
		<comments>http://bono02.wordpress.com/2007/09/25/programming-style-for-ni-instruments/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 12:50:36 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[LabView]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/2007/09/25/programming-style-for-ni-instruments/</guid>
		<description><![CDATA[AFAIK, NI provides three ways of programming for the instruments they produce, they are:

LabView,  a graphical based programming
LabWindows/CVI, a GUI programming based on C language
Object Oriented Programming based language (C++, I am using MSVS2005)

You can see my desktop of these 3 &#8220;programming style:&#8221;

Programmers who used to code by writing programming syntax  need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=25&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>AFAIK, <a href="http://www.ni.com" title="National Instruments">NI</a> provides three ways of programming for the instruments they produce, they are:</p>
<ol>
<li>LabView,  a graphical based programming</li>
<li>LabWindows/CVI, a GUI programming based on C language</li>
<li>Object Oriented Programming based language (C++, I am using MSVS2005)</li>
</ol>
<p>You can see my desktop of these 3 &#8220;programming style:&#8221;<span id="more-25"></span></p>
<p><a href="http://bono02.files.wordpress.com/2007/09/labview.JPG" title="NI programming style"><img src="http://bono02.files.wordpress.com/2007/09/labview.JPG?w=744&#038;h=596" alt="NI programming style" height="596" width="744" /></a></p>
<p>Programmers who used to code by writing programming syntax  need to adapt the &#8220;programming style&#8221; if they choose the 1st method (graphical),  and this is my reason to try all these methods by writing a small program for turning on a LED at line Port0/Line0, so that I could find the most comfortable and fastest way to develop a program.</p>
<p>I like the MSVS2005 programming environment because of the easiness provided by the IDE, rather than CVI which I am not used to it, but AFAIK, the MSVS2005 doesn&#8217;t provide a complete library compared to CVI and LabView <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  and to my surprise I found in CVI sample code a <strong>goto</strong> syntax! oh..no <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><a href="http://bono02.files.wordpress.com/2007/09/cvi.JPG" title="CVI Goto"><img src="http://bono02.files.wordpress.com/2007/09/cvi.JPG?w=746&#038;h=599" alt="CVI Goto" height="599" width="746" /></a></p>
<p>It looks like my whole program will be based on graphical programming, then I really need to design the states using FSM or statechart, otherwise it will be very difficult to debug the program, and oh yeah&#8230;documentation!!! Hope I am not lazy to do this <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=25&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2007/09/25/programming-style-for-ni-instruments/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/09/labview.JPG" medium="image">
			<media:title type="html">NI programming style</media:title>
		</media:content>

		<media:content url="http://bono02.files.wordpress.com/2007/09/cvi.JPG" medium="image">
			<media:title type="html">CVI Goto</media:title>
		</media:content>
	</item>
		<item>
		<title>Old memory :)</title>
		<link>http://bono02.wordpress.com/2007/09/10/old-memory/</link>
		<comments>http://bono02.wordpress.com/2007/09/10/old-memory/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 09:19:43 +0000</pubDate>
		<dc:creator>Bondhan Novandy</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://bono02.wordpress.com/2007/09/10/old-memory/</guid>
		<description><![CDATA[Old memory, I learned assembly first time when I were in Senior High School, 2nd grade.  I learned how to write a .com program using debug. And now,  after several struggle I managed to dig in my brain and wrote the tiny program  
C:\&#62;DEBUG
-A 100
0B32:0100 MOV AH,02
0B32:0102 MOV DL,41
0B32:0104 MOV CL,1A
0B32:0106 INT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=24&subd=bono02&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Old memory, I learned assembly first time when I were in Senior High School, 2nd grade.  I learned how to write a .com program using debug. And now,  after several struggle I managed to dig in my brain and wrote the tiny program <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>C:\&gt;DEBUG<br />
-A 100<br />
0B32:0100 MOV AH,02<br />
0B32:0102 MOV DL,41<br />
0B32:0104 MOV CL,1A<br />
0B32:0106 INT 21<br />
0B32:0108 INC DL<br />
0B32:010A LOOP 106<br />
0B32:010C INT 20H<br />
0B32:010E<br />
-RCX<br />
CX 0000<br />
:E<br />
-N C:\ABC.COM<br />
-W<br />
Writing 0000E bytes<br />
-G<br />
ABCDEFGHIJKLMNOPQRSTUVWXYZ<br />
Program terminated normally<br />
-Q</p>
<p>C:\&gt;DIR ABC.COM<br />
Volume in drive C is WINDOWS<br />
Volume Serial Number is C012-9F20</p>
<p>Directory of C:\</p>
<p>09/10/2007  06:12 PM                14 ABC.COM<br />
1 File(s)             14 bytes<br />
0 Dir(s)  11,225,669,632 bytes free</p>
<p>C:\&gt;ABC<br />
ABCDEFGHIJKLMNOPQRSTUVWXYZ<br />
C:\&gt;</p></blockquote>
<p>I cannot remember which service interrupt used to put a single character into screen, well, here&#8217;s the reference:</p>
<blockquote><p>  Category: <strong>DOS kernel</strong></p>
<pre><strong>INT 21 - DOS 1+ - WRITE CHARACTER TO STANDARD OUTPUT</strong>

	AH = 02h
	DL = character to write
Return: AL = last character output (despite the official docs which state
		nothing is returned) (at least DOS 2.1-7.0)
Notes:	^C/^Break are checked, and INT 23 executed if pressed
	standard output is always the screen under DOS 1.x, but may be
	  redirected under DOS 2+
	the last character output will be the character in DL unless DL=09h
	  on entry, in which case AL=20h as tabs are expanded to blanks
	if standard output is redirected to a file, no error checks (write-
	  protected, full media, etc.) are performed
SeeAlso: AH=06h,AH=09h</pre>
</blockquote>
<pre></pre>
<p>~Still remembering the first time I cracked a commercial software =P, lol, it was fun. Thx for the tutorial writer, sorry I forgot your name =D</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bono02.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bono02.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bono02.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bono02.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bono02.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bono02.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bono02.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bono02.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bono02.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bono02.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bono02.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bono02.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bono02.wordpress.com&blog=532246&post=24&subd=bono02&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bono02.wordpress.com/2007/09/10/old-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce973d04c8a663398081f5f440344518?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">bondan</media:title>
		</media:content>
	</item>
	</channel>
</rss>