LabView + Arduino UNO

Facebooktwitterredditpinterestlinkedinmail


[In English]
Para utilizar Arduino y LabVIEW conjuntamente, existe un interfaz llamado LIFA (LabVIEW Interface For Arduino) que permite conectarlos. Una sencilla búsqueda en Google devuelve mucha documentación de cómo hacerlo,  aunque para mi gusto estos dos documentos proporcionados por National Instruments son suficientes:

El equipo con el que he trabajado tiene Windows 7, y la versión de LabVIEW es la 2009 SP1. Los únicos detalles a tener en cuenta son:

  • Para poder cargar el firmware LIFA en Arduino es necesario descargarle un fichero que se encuentra en un directorio de C:\Archivos de Programa, 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ás baste con obtener ese fichero en concreto, y guardarlo en otra ubicación del disco duro para usarlo posteriormente).
  • 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án instalados, intenta buscarlos fuera y tarda bastante en detectar el Arduino. Paciencia 🙂
  • Para volver a trabajar con Arduino sin conexión con LabVIEW no hay que hacer nada especial: basta con cargarle el .ino que deseemos, como siempre.

Una vez instalado LIFA en LabVIEW, resulta muy útil consultar los ejemplos que se incluyen en Toolkits and Modules/Embedded Development. Las fotos y el vídeo que incluyo al final de esta entrada muestran una adaptación del ejemplo de lectura de pines analógicos usando un potenciómetro de 1K.

Finalmente, he descubierto que  LIFA ha sido sustituido por LINX. Puesto que la instalación de LIFA ha ido como la seda, y por el momento cubre lo que quiero hacer, voy a mantenerme fiel a LIFA 🙂

[En español]

If you want to connect Arduino and LabVIEW, you can use the LIFA interface  (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  are enough:

The computer I have used is a Windows 7 platform with LabVIEW 2009 SP1. Some considerations about the installation process:

  • In order to upload the LIFA firmware in Arduino, you need a file that can be found in a folder inside C:\Program Files, where NI data are stored. Therefore, your Windows user account  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).
  • 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 🙂
  • You can go back to work with Arduino without LabVIEW connection without any special steps: just upload the .ino file you wish, as usual.

Once you have installed LIFA in LabVIEW, it is really useful to check the examples stored in Toolkits and Modules/Embedded Development. 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.

Finally, I have discovered that LIFA has been replaced by LINX. 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 🙂

20150113_20554720150113_205535

European Robotics Week 2014: yeah :)!!

Facebooktwitterredditpinterestlinkedinmail

El pasado sábado 29 de Noviembre celebramos el Taller Lego NXT en la Escuela de Ingenierías de la UMA. Yo me lo pasé muy bien :), y por eso quiero agradecer el interés y las ganas de participar y aprender de todos los asistentes.

Our Lego NXT Workshop was hold on Saturday 29 November at Escuela de Ingenierías (UMA). I really had a good time :), and I am very grateful for the interest and the desire to learn that all the participants showed.

20141129_111215 20141129_133241_redu 20141129_121709

Lego NXT Workshop at Málaga University (European Robotics Week 2014)

Facebooktwitterredditpinterestlinkedinmail

lego

Dentro de las actividades de la Semana Europea de la Robótica 2014, el próximo Sábado 29 de Noviembre llevaremos a cabo un Taller Lego NXT, dirigido a ingenieros con conocimientos básicos de programación. Más información aquí.

We celebrate the European Robotics Week 2014 next Saturday 29th November with a Lego NXT Workshop, targeted to engineers with a basic programming knowledge. More info here [in Spanish]

Preinstalled Nootrix ROS Indigo VM (Xubuntu, Windows 7)

Facebooktwitterredditpinterestlinkedinmail


[In English]
La máquina virtual es la de ROS Indigo Igloo 32 bits que ofrece preinstalada Nootrix y que puede descargarse aquí.

En Xubuntu 14.04, la he instalado en Virtual Box 4.3.10. Para no perder la costumbre ;), me han surgido algunos problemas, que he resuelto como sigue:

  • Los problemas de creación o cierre del fichero .vmdk han desaparecido forzando a que, en Virtual Box, la opción Archivos -> Preferencias -> General -> Carpeta predeterminada de máquinas  contenga el directorio donde está almacenado en el fichero .ova, en lugar de modificar ese path al instalar la máquina.
  • Una vez instalada la máquina correctamente, el que ha protestado ha sido Virtual Box. Afortunadamente, en el propio error se indicaba la solución, que efectivamente funciona: The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
    ‘/etc/init.d/vboxdrv setup’
    as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

En Windows 7, la he instalado en Virtual Box 4.2.10.  Aparentemente, la instalación ha ido bien.


[En español]
I have chosen the 32 bits preinstalled virtual machine of ROS Indigo Igloo offered by Nootrix here.

Under Xubuntu 14.04 I have Virtual Box 4.3.10. Just for a change ;), some issues arose, and they were solved like that:

  • Problems related to creating or closing the  .vdmk file disappeared when I forced, in Virtual Box, that the folder in  Files -> Preferences -> General -> Predetermined machine folder  (I hope I have translated this properly, since my Virtual Box is in Spanish) is the same that the folder which stores de .ova file, instead of changing that path directly when the virtual machine is installed.
  • Once the virtual machine was properly installed,  Virtual Box did not feel comfortable 😉 Luckily, the error info showed also how to solve it (and it works):  The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
    ‘/etc/init.d/vboxdrv setup’
    as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

On Windows 7, I used Virtual Box 4.2.10, and everything seems to be fine by now.

Publications in education: where to go

Facebooktwitterredditpinterestlinkedinmail


[In English]
El año pasado, la E.T.S.I. Informática de la Universidad de Málaga organizó el taller “Publicaciones en Educación”, impartido por el profesor David López, de la Universidad Politécnica de Cataluña. La experiencia fue realmente interesante y amena. El profesor López ha realizado una magnífica labor de recopilación de congresos y revistas relativas a educación que dejo aquí:


[En español]
Last year, the Computer Science School at Universidad de Málaga organized a workshop  about teaching publications,  taught by Dr. David López,  assistant professor with the Universidad Politécnica de Cataluña. It was a really interesting and nice experience.  Professor López has done an invaluable job gathering conferences and journals about education, that can be consulted in the following (the links are in Spanish, but the information about journals and conferences is easily understandable):

 

About educational systems

Facebooktwitterredditpinterestlinkedinmail

Un artículo de Amy S. Choi sobre los dos mejores sistemas educativos del mundo. Me quedo con esta frase:

A post by Amy S. Choi about the two most recognized educative systems in the world. I would highlight this sentence:

“In the most successful education cultures in the world, it is the system that is responsible for the success of the student, says Schleicher — not solely the parent, not solely the student, not solely the teacher.”

Nice things with Lego NXT

Facebooktwitterredditpinterestlinkedinmail

Dos vídeos muy interesantes del trabajo de nuestros alumnos en la Universidad de Málaga usando el robot Lego NXT:

 

Two interesting videos with work of our students at University of Málaga using Lego NXT robot:

Some useful tips on academic blogging

Facebooktwitterredditpinterestlinkedinmail

Un artículo en The Guardian con ideas interesantes para mantener un blog académico. Me alegra saber que no hay que tener las cosas totalmente claras desde el principio 🙂  Respecto a lo de usar las redes sociales, son demasiadas como para poder atenderlas bien…

A post in The Guardian that gathers interesting ideas for keeping an academic blog. It’s good to know that you don’t have to set all the details and vision from the beginning 🙂 Regarding social networks, I think that there are too many to handling them properly…