{"id":266,"date":"2015-01-14T14:46:49","date_gmt":"2015-01-14T14:46:49","guid":{"rendered":"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=266"},"modified":"2015-07-15T05:19:14","modified_gmt":"2015-07-15T05:19:14","slug":"labview-arduino-uno","status":"publish","type":"post","link":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=266","title":{"rendered":"LabView + Arduino UNO"},"content":{"rendered":"<a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"http:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;t=LabView%20%2B%20Arduino%20UNO&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;p&#091;images&#093;&#091;0&#093;=http%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Fwp-content%2Fuploads%2F20150113_205535-300x225.jpg&#038;p&#091;title&#093;=LabView%20%2B%20Arduino%20UNO\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;text=Check%20this%20out%20%2F%20Mira%20esto\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"http:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;title=LabView%20%2B%20Arduino%20UNO\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"http:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;media=http%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Fwp-content%2Fuploads%2F20150113_205535-300x225.jpg&#038;description=LabView%20%2B%20Arduino%20UNO\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"http:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266&#038;title=LabView%20%2B%20Arduino%20UNO\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=LabView%20%2B%20Arduino%20UNO&#038;body=Check%20this%20out%20%2F%20Mira%20esto:%20https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F266\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/mail.png\" \/><\/a><p><a id=\"spanish\"><\/a><br \/>\n<a href=\"#english\">[In English]<\/a><br \/>\nPara utilizar Arduino y LabVIEW conjuntamente, existe un interfaz llamado LIFA (<em>LabVIEW Interface For Arduino<\/em>) que permite conectarlos. Una sencilla b\u00fasqueda en Google devuelve mucha documentaci\u00f3n de c\u00f3mo hacerlo,\u00a0 aunque para mi gusto estos dos documentos proporcionados por National Instruments son suficientes:<\/p>\n<ul>\n<li><a href=\"http:\/\/digital.ni.com\/public.nsf\/allkb\/A20FBBD36820669086257886004D5F4D?OpenDocument\" target=\"_blank\">C\u00f3mo instalar en LabVIEW el LIFA Toolkit<\/a> (en ingl\u00e9s)<\/li>\n<li><a href=\"http:\/\/digital.ni.com\/public.nsf\/allkb\/8C07747189606D148625789C005C2DD6\" target=\"_blank\">C\u00f3mo cargar el firmware LIFA en Arduino<\/a> (en ingl\u00e9s)<\/li>\n<\/ul>\n<p>El equipo con el que he trabajado tiene Windows 7, y la versi\u00f3n de LabVIEW es la 2009 SP1. Los \u00fanicos detalles a tener en cuenta son:<\/p>\n<ul>\n<li>Para poder cargar el firmware LIFA en Arduino es necesario descargarle un fichero que se encuentra en un directorio de <em>C:\\Archivos de Programa<\/em>, donde se almacenen los datos de National Instruments. Por tanto, la cuenta de usuario Windows con la que se trabaja debe tener acceso a ese directorio (o quiz\u00e1s baste con obtener ese fichero en concreto, y guardarlo en otra ubicaci\u00f3n del disco duro para usarlo posteriormente).<\/li>\n<li>Para cargar el firmware LIFA en Arduino es necesario que Windows lo haya detectado y le haya asignado un puerto. En mi equipo, a pesar de que los drivers de Arduino est\u00e1n instalados, intenta buscarlos fuera y tarda bastante en detectar el Arduino. Paciencia \ud83d\ude42<\/li>\n<li>Para volver a trabajar con Arduino sin conexi\u00f3n con LabVIEW no hay que hacer nada especial: basta con cargarle el .ino que deseemos, como siempre.<\/li>\n<\/ul>\n<p>Una vez instalado LIFA en LabVIEW, resulta muy \u00fatil consultar los ejemplos que se incluyen en <em>Toolkits and Modules\/Embedded Development<\/em>. Las fotos y el v\u00eddeo que incluyo al final de esta entrada muestran una adaptaci\u00f3n del ejemplo de lectura de pines anal\u00f3gicos usando un potenci\u00f3metro de 1K.<\/p>\n<p>Finalmente, he descubierto que\u00a0<a href=\"https:\/\/decibel.ni.com\/content\/groups\/labview-interface-for-arduino\" target=\"_blank\"> LIFA ha sido sustituido por LINX<\/a>. Puesto que la instalaci\u00f3n de LIFA ha ido como la seda, y por el momento cubre lo que quiero hacer, voy a mantenerme fiel a LIFA \ud83d\ude42<br \/>\n<a id=\"english\"><\/a><br \/>\n<a href=\"#spanish\">[En espa\u00f1ol]<\/a><\/p>\n<p>If you want to connect Arduino and LabVIEW, you can use the LIFA interface\u00a0 (LabVIEW Interface For Arduino). A simple Google search returns a lot of information about how this can be done, but in my opinion these two National Instruments documents\u00a0 are enough:<\/p>\n<ul>\n<li><a href=\"http:\/\/digital.ni.com\/public.nsf\/allkb\/A20FBBD36820669086257886004D5F4D?OpenDocument\" target=\"_blank\">How to install LIFA Toolkit in LabVIEW<\/a><\/li>\n<li><a href=\"http:\/\/digital.ni.com\/public.nsf\/allkb\/8C07747189606D148625789C005C2DD6\" target=\"_blank\">How to update LIFA firmware in Arduino<\/a><\/li>\n<\/ul>\n<p>The computer I have used is a Windows 7 platform with LabVIEW 2009 SP1. Some considerations about the installation process:<\/p>\n<ul>\n<li>In order to upload the LIFA firmware in Arduino, you need a file that can be found in a folder inside <em>C:\\Program Files<\/em>, where NI data are stored. Therefore, your Windows user account\u00a0 should have permissions to access that folder (or maybe you just need to get that file by any other means, and then store it where you want).<\/li>\n<li>To upload the LIFA firmware in Arduino, Windows must first detect the microcontroller, and then assign a port to it. In my computer, despite that the Arduino drivers are loaded, Windows searches them again, so it spends a while until the Arduino is detected. Patience is a virtue \ud83d\ude42<\/li>\n<li>You can go back to work with Arduino without LabVIEW connection without any special steps: just upload the .ino file you wish, as usual.<\/li>\n<\/ul>\n<p>Once you have installed LIFA in LabVIEW, it is really useful to check the examples stored in <em>Toolkits and Modules\/Embedded Development<\/em>. The photos and video at the end of this post show an adaptation of the example devoted to read analogic pins, using a 1K potentiomete.<\/p>\n<p>Finally, I have discovered that <a href=\"https:\/\/decibel.ni.com\/content\/groups\/labview-interface-for-arduino\" target=\"_blank\">LIFA has been replaced by LINX<\/a>. Since LIFA has been installed like a charm, and up to this moment covers what I need to do, I will stay faithful to LIFA \ud83d\ude42<\/p>\n<p><a href=\"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205547.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-277 aligncenter\" src=\"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205547-300x225.jpg\" alt=\"20150113_205547\" width=\"300\" height=\"225\" srcset=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205547-300x225.jpg 300w, https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205547-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205535.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-278 aligncenter\" src=\"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205535-300x225.jpg\" alt=\"20150113_205535\" width=\"300\" height=\"225\" srcset=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205535-300x225.jpg 300w, https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/uploads\/20150113_205535-1024x768.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><iframe loading=\"lazy\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ffFAxKrS68k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[In English] Para utilizar Arduino y LabVIEW conjuntamente, existe un interfaz llamado LIFA (LabVIEW Interface For Arduino) que permite conectarlos. Una sencilla b\u00fasqueda en Google devuelve mucha documentaci\u00f3n de c\u00f3mo hacerlo,\u00a0 aunque para mi gusto estos dos documentos proporcionados por National Instruments son suficientes: C\u00f3mo instalar en LabVIEW el LIFA Toolkit (en ingl\u00e9s) C\u00f3mo cargar &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=266\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;LabView + Arduino UNO&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[29,4],"tags":[30,41,31],"_links":{"self":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/266"}],"collection":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":12,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}