tag:blogger.com,1999:blog-16185545154292608002024-03-15T20:12:10.312-05:00LabVIEWtest.blogspot.comLabVIEW and TesStand programming and sometimes Arduino.Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-1618554515429260800.post-71092951547531404082014-05-02T12:26:00.003-05:002014-05-02T12:28:04.780-05:00OTC 2014 and National InstrumentsEach year Houston is the host to a huge technology conference for the Offshore industry. <br />
<br />
This year the <a href="http://www.otcnet.org/2014/" target="_blank">2014 OTC Offshore Technology Convention</a> will be held in the Reliant Center at One Reliant Park in Houston Texas. <a href="http://sine.ni.com/nievents/app/overview/p/eventId/33222/site/nic/country/us/lang/en/scope/country/location/us?espuid=CNATL000008334979&cid=Direct_Marketing-ECM-United_States-em77137" target="_blank">National Instruments</a> will have a booth 3471 showcasing their latest products relevant to the offshore industry. I'm sure they will have their latest CompactRIO which has many installations in pumping and hydraulic fracturing operations for land-based operations. The proven reliability is perfect for offshore use.Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com1tag:blogger.com,1999:blog-1618554515429260800.post-37374511888897768242014-03-28T19:17:00.000-05:002014-05-02T12:03:08.658-05:00Arduino and LabVIEW Bundle Bonanza<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="https://lh6.googleusercontent.com/proxy/BAZ1cI2yW6i6-EhtYqtAodKDmfEA26IoGsqEaYvHsoOWKgqT_dozHWWza9jAEfK_JRGCzU6gablip4sq910hDd74Fak9_a3yeXl2Jg_D9txB" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Arduino+LabVIEW Bundle" border="0" src="http://ecx.images-amazon.com/images/I/41GC1rTpabL._SX385_.jpg" height="160" width="160" /></a>LabVIEW bundled with an Arduino. Such a great combination of a low cost and flexible electronic interface for sensors with LabVIEW the industry standard in measurement and test programming software. Anyone can purchase the Arduino microcontroller and be up and running LabVIEW within minutes. Web searches for the keywords "LabVIEW" have slowly dropped over the years since their peak at 2004. However the keyword "Arduino" has shot up like a rocket in the last two years.<br />
LabVIEW can be free as long as you use the evaluation level given to anyone wanting to try the software out for free. National Instruments is very generous with this feature and allow students extra benefits. With the small investment in an Arduino Uno, you can have a full instrument measurement package to innovate with.<br />
<a href="http://www.amazon.com/gp/product/B007R9U3L8/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B007R9U3L8&linkCode=as2&tag=rfc0a-20" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"><img border="0" src="http://2.bp.blogspot.com/-c2TvK-eUhUk/U1h0VXSf6bI/AAAAAAAAANM/ZK5fIdfy13k/s1600/LabviewArduinotrend.png" height="118" width="320" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.amazon.com/s/?_encoding=UTF8&camp=1789&creative=390957&field-keywords=labview%20arduino&linkCode=ur2&tag=rfc0a-20&url=search-alias%3Daps" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" target="_blank"><img alt="" border="0" src="http://2.bp.blogspot.com/-tEyM9Q_tflo/U1hfRmwIYQI/AAAAAAAAAM4/rCEjkTblSxA/s1600/LabviewTrend.png" height="116" title="Arduino in blue, LabVIEW in red" width="320" /></a>The search keywords "LabVIEW Arduino" had a huge breakout in early 2011 when the LIFA patch was introduced. It's been on a steady rise ever since. Popularity is growing each year.</div>
<center>
</center>
<center>
</center>
<center>
</center>
<!-- Blogger automated replacement: "https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F41GC1rTpabL._SX385_.jpg&container=blogger&gadget=a&rewriteMime=image%2F*" with "https://lh6.googleusercontent.com/proxy/BAZ1cI2yW6i6-EhtYqtAodKDmfEA26IoGsqEaYvHsoOWKgqT_dozHWWza9jAEfK_JRGCzU6gablip4sq910hDd74Fak9_a3yeXl2Jg_D9txB" -->Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com3tag:blogger.com,1999:blog-1618554515429260800.post-24229632730801625022013-11-28T10:20:00.000-06:002014-04-29T20:15:13.512-05:00Start NI TestStand trainingHere is a list of all the basic NI TestStand documents I can find online. I attended this TestStand 3hr. course a few times. It's only useful if you do all the exercises in the book, then try making your own.<br />
<br />
<ul>
<li><a href="https://decibel.ni.com/content/docs/DOC-18794" target="_blank">Hands-On Automated Test Software.pdf</a></li>
<li><a href="https://decibel.ni.com/content/docs/DOC-19321" target="_blank">Automated Test Software Hands-on With NI TestStand and LabVIEW -Presentation.pptx</a></li>
<li><a href="https://www.youtube.com/watch?v=NatLqcduBpY" target="_blank">TestStand Overview YouTube Video</a></li>
<li><a href="https://www.youtube.com/watch?v=NatLqcduBpY" target="_blank">Getting Started with TestStand</a></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/NatLqcduBpY?feature=player_embedded' frameborder='0'></iframe></div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com2tag:blogger.com,1999:blog-1618554515429260800.post-90587166495531659782013-09-14T09:45:00.000-05:002013-09-25T19:39:23.646-05:00TestStand and LabVIEW basics video<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/NatLqcduBpY?feature=player_embedded' frameborder='0'></iframe></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"> Here is my latest video. It's an overview of National Instruments TestStand test automation software used with LabVIEW to create a PCB testing system. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"> </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"> This video shows how easy TestStand and LabVIEW can be used to create a powerful test automation platform.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> I couldn't find a lot of information on how to start using NI TestStand and LabVIEW together to create a PCB test sequence program.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> I knew it was easy to do but I didn't realize it was this easy to get started. After one afternoon playing I was able to do this video.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">My next video will be a little more advanced.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-10195475230162774342013-08-07T20:51:00.001-05:002013-08-08T19:33:38.157-05:00NIWEEK 2013<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
I attended my first day of NIWEEK. </div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;">
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dkW2WZfog34/UgL5aenxsXI/AAAAAAAAAL0/QTUmPpRI82M/s1600/DSC00860.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="240" jsa="true" src="http://4.bp.blogspot.com/-dkW2WZfog34/UgL5aenxsXI/AAAAAAAAAL0/QTUmPpRI82M/s320/DSC00860.JPG" width="320" /></a></div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;">
It was lot's of fun. I registered my attendance first thing in the morning and the lady accidently gave me a Certified Developer tag for my badge. So I was a CLD for only a day. It was my lucky day. Hopefully it's a sign of the future. Maybe I will truly be a CLD soon.<br />
<br />
I attended a LabVIEW seminar on file management in the morning after the keynote speeches. <br />
I skipped lunch and walked around the Exhibit Hall to see all the neat things people have created using LabVIEW and NI products.</div>
</div>
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;">
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;">
<a href="http://3.bp.blogspot.com/-26YO9vu3BT0/UgJ9M_kkGSI/AAAAAAAAALU/J6AMv5TSVIM/s1600/DSC00868.JPG" imageanchor="1" style="clear: right; cssfloat: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="240" jsa="true" src="http://3.bp.blogspot.com/-26YO9vu3BT0/UgJ9M_kkGSI/AAAAAAAAALU/J6AMv5TSVIM/s320/DSC00868.JPG" width="320" /></a>In the afternoon I attended a hands-on LabVIEW training and then a TestStand training. <br />
<br />
Later in the afternoon, I returned back to the Exhibit Hall to continue learning how others have used LabVIEW to solve a problem or just sort their marbles by colors.<br />
<br />
<br />
<br /></div>
</div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-frUlCZUsR2Q/UgL3MhHACtI/AAAAAAAAALk/oplagggIP7o/s1600/DSC00857.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="240" jsa="true" src="http://3.bp.blogspot.com/-frUlCZUsR2Q/UgL3MhHACtI/AAAAAAAAALk/oplagggIP7o/s320/DSC00857.JPG" width="320" /></a></div>
I really enjoyed the Hands-on TestStand training. My LabVIEW and TestStand batteries have just been recharged. I hope it will show in my posts. <iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm-na.amazon-adsystem.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=wwwenterjakar-20&o=1&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=B00A99EXTG" style="height: 240px; width: 120px;"></iframe>
<iframe class="vine-embed" src="https://vine.co/v/hbFH2YaaxHT/embed/simple" width="320" height="320" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script>Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-78102365516485206512013-05-20T20:27:00.000-05:002014-04-29T21:20:40.497-05:00Arduino and LabVIEW overview on HubpagesNice introductory to the Arduino and LabVIEW.<br />
Read it here: <a href="http://richfatcat.hubpages.com/_136ez5eiqg7eo/hub/Labview-and-Arduino">Labview and Arduino</a><br />
<br />
<div class="hubpages_widget" style="margin: 0 auto 20px auto !important; width: 468px;">
<div id="hubpages_2054916">
<script src="http://hubpages.com/widget/insertWidget.php?i=2054916&h=150&m=l&t=136ez5eiqg7eo" type="text/javascript"></script>
</div>
<div class="hubpages_foot">
<a href="http://richfatcat.hubpages.com/">more ยป</a>
<a class="hubpages" href="http://hubpages.com/">HubPages</a>
<br />
<div style="clear: both;">
</div>
</div>
</div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-43969344983890088122012-12-23T23:16:00.001-06:002012-12-24T08:40:09.819-06:00Is the case structure "case sensitive?"Here was one of those tricking CLAD questions that I've never come across until I was taking the test.<br />
The question was like this example:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-avWrzPuKIgs/UNfjifiTXVI/AAAAAAAAAKo/w5cABwMQug4/s1600/clad_lowercase.bmp" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-avWrzPuKIgs/UNfjifiTXVI/AAAAAAAAAKo/w5cABwMQug4/s1600/clad_lowercase.bmp" /></a></div>
If this vi was run, what would the output be?<br />
At first glance it looks easy. With the selector terminal input being 'clad' and the case selector label being Clad, it should run the one button dialog box and print "This<br />
is Clad". But look again. The string input to the case structure is <br />
lowercase "clad". Yes the case structure IS CASE SENSITIVE.<br />
When I hit run on this vi, it doesn't recognize the "clad" and runs the<br />
default case instead.<br />
<br />
Here is what it looks like when I correct the lower case string input.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-wUvP12oD8Vk/UNfkfHVSBGI/AAAAAAAAAKw/hf6bsqGx4KQ/s1600/clad_upercase.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="211" src="http://1.bp.blogspot.com/-wUvP12oD8Vk/UNfkfHVSBGI/AAAAAAAAAKw/hf6bsqGx4KQ/s320/clad_upercase.bmp" width="320" /></a></div>
<br />
<br />
By correcting the string input to "Clad", it now matches the wording and case of the case structure and runs the "Clad" case which gives the one button dialog box output of "This is Clad".<br />
<br />
Yes, the case structure IS case sensitive. Try it before you take the CLAD test. <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-70553171227819521532012-12-07T20:22:00.000-06:002012-12-10T15:35:12.860-06:00CLAD certified today !!!I just passed the CLAD LabVIEW certification exam. It was a bit tricky. I studied everything I could find. <br />
<br />
In my opinion, the test consisted of half of the standard questions you find on the online practice exams. The other 50% I have never seen before except for in the Core 1,2, and 3 classroom exercises.<br />
It was 40 multiple choice questions. I finished in less than 30 minutes and used the rest of the time to review my answers. <br />
<br />
My advice to anyone taking this test is to study the practice exams, but also methodically go through all the exercises of the Core 1 through 3 classes. If I would have reviewed those examples in the classroom exercise book, it would have greatly improved my final score.<br />
For those who have not taken Core 1 through 3, I'll try to give a few examples in the next few weeks.<br />
<br />
Stay tuned.Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-57000478939514889952012-10-06T13:03:00.004-05:002012-10-09T12:09:39.171-05:00Count to ThreeJust like a programmer starts off printing "HELLO WORLD" on the screen, in LabVIEW you can start off by learning to count to three. It's not easy or intuitive to find a way to count between two numbers. The key words are "Quotient & Remainder."
On the Block Diagram hit CTRL and then SPACEBAR at the same time to pull up the Quick Drop dialog box. Type in Quotient & Remainder. It should find it by just typing in Quo....
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ONltfkA7w-0/UG-QAgBnysI/AAAAAAAAAHU/EU4VxYbAyBo/s1600/Quotient.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="124" src="http://3.bp.blogspot.com/-ONltfkA7w-0/UG-QAgBnysI/AAAAAAAAAHU/EU4VxYbAyBo/s200/Quotient.PNG" width="200" /></a></div>
Now add a While Loop around the Quotient & Remainder.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-dsfd7jkXcgQ/UG-hkAANPmI/AAAAAAAAAHo/o1v_qrGTK-0/s1600/Quotient2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="http://3.bp.blogspot.com/-dsfd7jkXcgQ/UG-hkAANPmI/AAAAAAAAAHo/o1v_qrGTK-0/s320/Quotient2.PNG" width="320" /></a></div>
<br />
<br />
<br />
We will use the iteration (i) terminal from the while loop to show the current loop count. The iteration terminal starts with zero on the first sequence. We connect a wire from the iteration (i) terminal to the X input of the Quotient& Remainder.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-CR4-f1XtRtk/UHA482t2KOI/AAAAAAAAAH4/9Vxwib60HIE/s1600/Quotient3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-CR4-f1XtRtk/UHA482t2KOI/AAAAAAAAAH4/9Vxwib60HIE/s1600/Quotient3.PNG" /></a></div>
<br />
<br />
<br />
We need to add an upper limit number to the Y input of the Quotient & Remainder. So Right-Click your mouse over the Y input and Create a Constant. We want this vi to count from 0 to 3. Put a 4 in the constant box. The output will count from 0 to 3 because the first count will be the zero and the fourth count will be the number 3.<br />
<br />
Right-click on the upper right output connector of the Quotient & Remainder and create an Indicator. This numeric indicator will be shown on the Front Panel. This is where the numbers will be seen. If you want to use this number for another operation, just add a wire and connect to another vi, or a graph, etc.<br />
<br />
You will need to add a Stop button to the front panel for this example and wire it to the Stop if True function of the While Loop at the lower right hand corner. Let's also slow it down a little so we can see the operation working. Add a Wait Until Next ms Multiple icon with 500 as a constant wait time.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-cBGcYYVdVHs/UHByHkZUGkI/AAAAAAAAAII/9Z8GZfgzGzA/s1600/Quotient4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-cBGcYYVdVHs/UHByHkZUGkI/AAAAAAAAAII/9Z8GZfgzGzA/s1600/Quotient4.PNG" /></a></div>
Hit run and watch the numeric indicator count from 0 to 3 on the Front Panel. Hit the Stop button to end the process.<br />
<br />
Thanks for learning how to Count To Three using LabVIEW with me. Feel free to leave a comment.<br />
<br />
<br />
<br />Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-72720475083136816682012-06-27T11:41:00.001-05:002014-06-12T07:33:47.563-05:00LabVIEW & ArduinoLabview By Fairweather, Ian (EDT)/ Brumfield, Anne (EDT) (Google Affiliate Ad)<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B006H06TVG" jquery1340808515031="5" target="_blank">Arduino</a> or compatible device</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Install the NI-VISA drivers.<br />
<ul>
<li><a class="jive-link-external-small" href="http://joule.ni.com/nidu/cds/view/p/id/2251/lang/en" target="_blank">Windows
Download</a>.
</li>
<li><a class="jive-link-external-small" href="http://joule.ni.com/nidu/cds/view/p/id/2040/lang/en" target="_blank">Linux
Download</a>.
</li>
<li><a class="jive-link-external-small" href="http://joule.ni.com/nidu/cds/view/p/id/2039/lang/en" target="_blank">Mac
Download</a>.</li>
</ul>
<div style="height: 8pt; min-height: 8pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
Install JKI VI Package Manager (VIPM) Community Edition (Free).<br />
<ul style="text-align: left;">
<li><a class="jive-link-external-small" href="http://www.jki.net/vipm" target="_blank">All Operating Systems</a>.</li>
</ul>
Install the LabVIEW Interface for Arduino as described <span style="color: red;"><a class="jive-link-external-small" href="http://digital.ni.com/public.nsf/allkb/A20FBBD36820669086257886004D5F4D?OpenDocument" target="_blank">here</a>.</span><br />
<div style="height: 8pt; min-height: 8pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<span style="color: black;">Connect your </span><a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B006H06TVG" jquery1340808515031="5" target="_blank">Arduino</a><span style="color: black;"> to your PC as described
in <span style="color: red;"><a class="jive-link-external-small" href="http://digital.ni.com/public.nsf/allkb/0F9DADF9055B086D86257841005D1773?OpenDocument" target="_blank">here</a>.</span></span><br />
<div style="height: 8pt; min-height: 8pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<span style="color: black;">Load the LabVIEW Interface for </span><a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B006H06TVG" jquery1340808515031="5" target="_blank">Arduino</a><span style="color: black;"> Firmware onto your Arduino as described in <a class="jive-link-external-small" href="http://digital.ni.com/public.nsf/allkb/8C07747189606D148625789C005C2DD6?OpenDocument" target="_blank">here.</a></span><br />
<span style="color: red;"><span style="color: black;"> </span></span><br />
Once you have everything loaded into the <a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&link_code=as3&camp=211189&creative=373489&creativeASIN=B006H06TVG" jquery1340808515031="5" target="_blank">Arduino</a>, attach an LED to pin 9 and build a VI in LabVIEW that will turn on the LED with a switch from the Front Panel of LabVIEW.<br />
<br /></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-XTVUuj8yFDI/T-s3xc7xkxI/AAAAAAAAAEw/TALqg3eir0M/s1600/basicArduino.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-XTVUuj8yFDI/T-s3xc7xkxI/AAAAAAAAAEw/TALqg3eir0M/s400/basicArduino.JPG" height="207" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Download this vi here: <a href="https://sites.google.com/site/labviewtest1/labviewtest/BasicArduino3.vi?attredirects=0&d=1" target="_blank">BasicArduino3.vi</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
See my new site: <a href="http://www.labviewtest.com/" target="_blank">www.labviewtest.com/</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
</div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com23tag:blogger.com,1999:blog-1618554515429260800.post-36251632214856012862012-05-27T21:17:00.000-05:002018-07-27T13:04:28.897-05:00Website scraping with LabVIEW<div dir="ltr" style="text-align: left;" trbidi="on">
Scrape or retrieve data from a website using LabVIEW. This is also called data harvesting or data extraction from websites.<br />
<br />
One difficulty is finding good HTML data to scrape. Most data like stock quotes have been replaced with dynamic data that doesn't have a clear and consistent text strings that can be searched.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-dHVgppsGuWU/T-0eo0adP4I/AAAAAAAAAGA/60vxW9FLhxc/s1600/openURLread.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="155" src="https://4.bp.blogspot.com/-dHVgppsGuWU/T-0eo0adP4I/AAAAAAAAAGA/60vxW9FLhxc/s400/openURLread.JPG" width="400" /></a></div>
Here is an example that opens a URL website, reads the HTML, picks out a string keyword and displays the data after that keyword.
I've chosen a weather site that has a consistent keyword like "temp"> and the page is dedicated to only one city. So the number after "temp"> will be that city's temperature.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-rUbyIZwZGBQ/T-0e79ff46I/AAAAAAAAAGM/uXd2-EU4DfQ/s1600/ThermometerURL.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="116" src="https://2.bp.blogspot.com/-rUbyIZwZGBQ/T-0e79ff46I/AAAAAAAAAGM/uXd2-EU4DfQ/s400/ThermometerURL.JPG" width="400" /></a></div>
This vi will be great for any instrument attached to a network with a web-page to access.<br />
<br />
Use the data socket open and then read to capture all the raw text of the webpage. Then use a string match pattern to search through the text to find the matching strings before the data that you want to scrape. The example show searches through the text of the webpage to find "temp">.<br />
<br />
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
More details can be found <a href="http://www.labviewtest.com/scrape-html-website-using-labview/" target="_blank">here.</a><br />
<br /></div>
</div>
<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_tracking_id = "al527-20";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "LabVIEW at Amazon";
amzn_assoc_asins = "019021189X,0131856723,B01KZY4GOQ,1782172165,0134022122,0136094295,0199925151,B00K7YGYW2,0131458353,B00BLCZUBA,1849698228,B010KT2KXK,1532864353,3895762814,B010KTNSF4,1585039446,0071364935,0073385875,3659398829";
amzn_assoc_linkid = "f6428ef28903832451c042962d2938f7";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com8tag:blogger.com,1999:blog-1618554515429260800.post-15797498777803678002012-03-26T16:07:00.002-05:002014-05-02T12:33:35.384-05:00STEP #4 "HELLO WORLD" using LabVIEW<div dir="ltr" style="text-align: left;" trbidi="on">
So you've completed <a href="http://labviewtest.blogspot.com/2012/03/get-labview.html" target="_blank">STEP #1 Get LabVIEW</a> and you've worked through the examples given in the tutorials. <br />
Then you followed <a href="http://labviewtest.blogspot.com/2012/03/get-arduino-or-equivalent.html" target="_blank">STEP #2 Get an Arduino</a>. <br />
You checked out your Arduino and now you are ready to program the LIFA files onto the Arduino with <a href="http://labviewtest.blogspot.com/2012/02/labview-interface-for-arduino-setup.html" target="_blank">STEP #3 Load LIFA</a>.<br />
<br />
You need a way to test that everything is connected and working. <br />
You also need to get familiar with both LabVIEW and Arduino together.<br />
<br />
Your first LabVIEW project needs to be something very simple and easy to understand. <br />
Most programming languages and starter circuits always have a "HELLO WORLD" to learn from. <br />
<br />
Controlling an LED with an on-screen switch would be an easy way you can interface the on-screen controls of the LabVIEW Front Panel with the real-world LED connected to an output of the Arduino.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-7bgm9mpH478/T3DZxhDZPRI/AAAAAAAAAEU/roR0To3M09k/s1600/1switchFP.JPG" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img aea="true" border="0" src="http://2.bp.blogspot.com/-7bgm9mpH478/T3DZxhDZPRI/AAAAAAAAAEU/roR0To3M09k/s200/1switchFP.JPG" height="200px" width="166px" /></a></div>
<br />
You can start by adding a switch, a stop button and an indicator LED to your first front panel. You can also add these items from the Block Diagram.<br />
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;">
</div>
<div style="text-align: left;">
The Block Diagram shows the connection details of my Arduino Clone. Your settings may very depending on what Arduino device you have connected. You can always find the com port in your control panel, Hardware manager of Windows. Plug your Arduino into the USB jack and see what com port is listed when it connects.</div>
<a href="http://1.bp.blogspot.com/-AIJVivXxUhM/T3DZsupj7ZI/AAAAAAAAAEM/CEr-sCrHEFA/s1600/1switchBD.JPG" imageanchor="1" style="clear: right; cssfloat: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img aea="true" border="0" src="http://1.bp.blogspot.com/-AIJVivXxUhM/T3DZsupj7ZI/AAAAAAAAAEM/CEr-sCrHEFA/s320/1switchBD.JPG" height="186px" width="320px" /></a><br />
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;">
<br /></div>
<div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;">
<br /></div>
</div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-64034575683083129042012-03-26T12:19:00.001-05:002014-05-02T12:16:12.780-05:00STEP #2 Get an Arduino, or equivalent<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
The first equipment you will need is an <a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B006H06TVG" target="_blank">Arduino</a> UNO or compatible device. Here are photos of my Arduino which is smaller than the normal Arduino UNO. This is a clone Arduino. Arduino's come in many different packages, shapes and sizes. Choose which bests works for your situation.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I bought the small board on the left from <a href="http://www.adafruit.com/" target="_blank">http://www.adafruit.com/</a> and the red board connected is the USB to </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Arduino board I bought from <a href="http://www.sparkfun.com/products/9716" target="_blank">http://www.sparkfun.com/products/9716</a></div>
<div class="separator" style="clear: both; text-align: left;">
The board on the right is just a block of LED's and a pushbutton connected to the Arduino as outputs and inputs.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9Wv1u18lfAU/T3CiHpSJmJI/AAAAAAAAAD0/NSFlDmBx0CY/s1600/IMG_01991.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img aea="true" border="0" src="http://2.bp.blogspot.com/-9Wv1u18lfAU/T3CiHpSJmJI/AAAAAAAAAD0/NSFlDmBx0CY/s320/IMG_01991.JPG" height="240px" width="320px" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
I used the USB board and connected it to a proto-board with a 10uf and 16MHz ceramic resonator which creates an Arduino compatable device.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1AuQUICSZEM/T3CiLI1XKPI/AAAAAAAAAD8/u3Dpj6awGtA/s1600/IMG_02321.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img aea="true" border="0" src="http://2.bp.blogspot.com/-1AuQUICSZEM/T3CiLI1XKPI/AAAAAAAAAD8/u3Dpj6awGtA/s320/IMG_02321.JPG" height="240px" width="320px" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
And here is the original Arduino <a href="http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B006H06TVG" target="_blank">UNO R3</a> which has the USB circuit already installed.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><span class="Apple-style-span" style="margin-left: auto; margin-right: auto;"><a href="http://www.blogger.com/goog_1371630043"><img aea="true" alt="" border="0" src="http://2.bp.blogspot.com/-kdBY1fNpVCk/T3CiDYomTjI/AAAAAAAAADs/d43AuGaxWmw/s320/IMG_02301.JPG" height="240px" title="Arduino UNO R3" width="320px" /></a></span></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><a href="http://www.blogger.com/href=%22http://www.amazon.com/gp/product/B006H06TVG/ref=as_li_ss_tl?ie=UTF8&tag=wwwenterjakar-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B006H06TVG" target="_blank">UNO R3</a></td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
All of these devices can be used to interface with LabView.</div>
</div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com3tag:blogger.com,1999:blog-1618554515429260800.post-81937310325105315182012-03-26T12:00:00.000-05:002014-05-02T20:03:13.294-05:00STEP #3 LabVIEW Interface for Arduino Setup Procedure<div dir="ltr" style="text-align: left;" trbidi="on">
Setting up the LabVIEW Interface for Arduino (LIFA) is a six step process that you will only need to complete once you get LabVIEW setup on your computer and you have an Arduino or compatible device. Please follow the instructions below to start creating applications with the LabVIEW Interface for Arduino. <a href="https://decibel.ni.com/content/docs/DOC-15971" target="_blank">LabVIEW Interface for Arduino Setup Procedure</a><br />
<br />
<a href="http://richfatcat.hubpages.com/hub/Labview-and-Arduino" target="_blank">Nice overview of using Labview-and-Arduino</a></div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com1tag:blogger.com,1999:blog-1618554515429260800.post-83985771784778364352012-02-08T07:49:00.002-06:002012-03-26T16:11:19.559-05:00INTRODUCTION TO THE PROJECT<div dir="ltr" style="text-align: left;" trbidi="on">My goal for this project is to fully utilize the free LabVIEW Student version and a relatively in-expensive Arduino microcontroller to build a test/troubleshooting box.<br />
<br />
My first project is a test box for a simple multiplexer circuit. The circuit inputs are a clock signal and three switch inputs. The output is several LED's.<br />
<br />
I want LabVIEW to control the clock input. I want to be able to turn the clock on and off, and also step through a clock sequence with a touch of a button.<br />
<br />
I want LabVIEW to control the three switch controls from on-screen.<br />
<br />
And the LED's should also be displayed on-screen and no physical LED's needed.<br />
<br />
Hepefully all can be done with only the Student version of LabVIEW and the Arduino microcontroller.<br />
<br />
If this simple task works, it will justify the cost of the full version of LabVIEW.</div>Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-4766066063447673412012-02-07T11:58:00.000-06:002014-05-02T20:04:17.752-05:00Top 5 Reasons LabVIEW Makes You More Productive When Using Arduino<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://zone.ni.com/devzone/cda/tut/p/id/12879" target="_blank">Top 5 Reasons LabVIEW Makes You More Productive When Using Arduino</a><br />
<br />
The Arduino microcontroller is a low-cost electronics prototyping platform. With the LabVIEW Interface for Arduino Toolkit you can leverage the power of the LabVIEW Graphical Programming environment to interface with the Arduino in a whole new dimension. Learn how the LabVIEW features listed below will help you increase productivity when using Arduino. </div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com0tag:blogger.com,1999:blog-1618554515429260800.post-44437356298332234662012-02-07T11:55:00.001-06:002014-05-02T12:13:17.011-05:00Arduino with LabView<div dir="ltr" style="text-align: left;" trbidi="on">
LabVIEW is a National Instruments software package that provides a graphical programming language for interfacing the Arduino micorcontroller.<br />
<br />
Check out the NI website for more information: <a href="http://sine.ni.com/nips/cds/view/p/lang/en/nid/209835" target="_blank">Use Arduino I/O With LabVIEW</a><br />
<br />
The Arduino is an easy to configure, low-cost microcontroller with many built-in functions like:<br />
<ul>
<li>Digital and analog inputs and outputs, PWM pulse width modulations, I2C communications, and SPI serial communications.</li>
<li>Loop rates: USB tethered (200 Hz) and wireless (25 Hz)</li>
<li>Open Arduino sketch and toolkit VIs help you customize functionality</li>
</ul>
The FIFA I/O engine sketch is loaded on Arduino to establish communications with LabVIEW<br /></div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com3tag:blogger.com,1999:blog-1618554515429260800.post-39477680519457729602012-02-03T21:55:00.004-06:002012-10-07T16:56:12.984-05:00LabVIEW for Amazon Associates<div dir="ltr" style="text-align: left;" trbidi="on">
LabVIEW can be used to generate links for Amazon Associates.<br />
The Concatenate Strings function can be used to combine elements of the link and combine them all together with an HTML String output. This output was used to create this link below.<br />
<br />
<a href="http://www.amazon.com/gp/product/0132141299/ref=as_li_tf_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0132141299&linkCode=as2&tag=labviewtest-20">LabVIEW 2009 Student Edition</a>
<br />
<br />
The inputs are the products ASIN number, your Amazon Associates ID number. If you don't have one, feel free to use mine. <br />
Also enter the text to be shown as a underlined link. For different items you want to create links for, you will just need to change the ASIN and Text data. Hit Run, then copy the link from the HTML String into your blog post. It will look like the link above.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-y7_lXSmlEdo/T_Hb5mk3rrI/AAAAAAAAAGk/VNcfaCQ558g/s1600/amzassociates.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="281" src="http://3.bp.blogspot.com/-y7_lXSmlEdo/T_Hb5mk3rrI/AAAAAAAAAGk/VNcfaCQ558g/s640/amzassociates.JPG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-VLJPzhp-lOc/T_HcDJFS0bI/AAAAAAAAAGs/DzwivZhJQm0/s1600/amzassociatesblk.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="281" src="http://4.bp.blogspot.com/-VLJPzhp-lOc/T_HcDJFS0bI/AAAAAAAAAGs/DzwivZhJQm0/s400/amzassociatesblk.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
LabVIEW_2010 vi : <a href="https://sites.google.com/site/labviewtest1/labviewtest/AMAZONassociates1.vi?attredirects=0&d=1" target="_blank">AMAZONassociates1.vi</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
Alanhttp://www.blogger.com/profile/14640779791293394321noreply@blogger.com7