LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview arduino xbee

Hola buenas, soy nuevo en este foro y necesitaría ayuda en un proyecto que estoy haciendo, tengo que mediante un arduino recoger datos de tres sensores y guardarlos en una sd que coloco en el shield de xbee para arduino, para hacer esto no hay problema ninguno. El problema viene cuando tengo que comunicar con labview, tengo un modulo xbee con un explorer conectado al ordenador y otro modulo xbee con un arduino conectado con una alimentación independiente, como he dicho mas arriba el arduino tiene que recoger datos de tres sensores y guardarlos en una sd, esto lo hace sin problemas pero lo hace si no meto labview de por medio, me explico, para que arduino comunique con labview hay que cargarle el LIFA con la velocidad en baudios correcta y tal, dentro del lifa coloco el programa que habia echo para guardar los datos de los sensores en la sd y me dice que es demasiado grande el sketch, buscando soluciones me han comentado que borre las librerías que no hagan falta, ¿se pueden borrar las librerías que no utilices del LIFA?, borre la de los servos y ya no me daba el error de sketch demasiado grande pero no funcionaba nada. Lo que debería conseguir es que sin enchufarlo al ordenador, alimentándolo con pilas o bateria, el arduino recoja datos de los sensores y los guarde en la sd de forma independiente pero si funcionando de esta manera conectara el otro xbee y abriera labview aparte de seguir guardando los datos en la tarjeta sd los mostrara por pantalla también de manera simultanea. ¿Es posible que el arduino con el lifa mas el programa para la sd cargados y sin el ordenador encendido funcione? ¿y cuando se encienda el ordenador y se abra labview seguiría funcionando?ç

Si alguien podría ayudarme seria de agradecer.

Hi, I'm new to this forum and need help on a project I'm doing, I have to by a three-arduino sensors collect data and save them to a sd I place on the shield of xbee for arduino to do this no problem either. The problem comes when I have to communicate with labview, I have a module xbee explorer connected to a computer and another xbee module with arduino connected to a separate power supply, as I said above the arduino has to collect data from three sensors and save one sd, it makes no problems but it does if I do not put labview involved, I mean, to communicate with labview arduino have to charge the LIFA with the correct baud rate within the lifa put the program had echo to save the data from the sensors in the sd and says it is too big the sketch, seeking solutions have told me to delete the libraries that are needed, is it possible to delete the libraries that do not use the LIFA?, clear the the servos and gave me no error of sketch too big but nothing worked. What you should get is that without plugging to the computer, feeding with rechargeable battery, the arduino collect sensor data and store them in the sd independently but if running this way and connect the other xbee besides keeping open labview keeping data on sd card on screen display also simultaneously. Is it possible that the arduino with more lifa for sd program loaded without the computer turned on to work? What about when you turn on your computer and open labview still work?

If anyone could help would be appreciated.

Message 1 of 4
(6,674 Views)

If the firmware is too large to fit in the Arduino Flash you can remove libraries you are not using for example the liquid crystal, AF Motor, IR, etc.  Keep in mind anything you remove from the firmware will not longer work if you try to call it in LabVIEW.

If you're having trouble communicating with the Arduino via xbee try the following:

  • Write some simple firmware that sends serial bytes repeatedly and read the bytes in LabVIEW
  • If the works, write some simple firmware that repeatedly reads bytes from LabVIEW and returns the same byte.
  • If that works move to the full LIFA firmware.

When I used the Xbees I was only able to use a  buad rate of ~38,000 or less.  You may want to start with 9600.  Also make sure you are explicitly setting the COM port in LabVIEW.  The init VI cannot auto detec the Arduino when you are using Xbees.

I hope this helps.

-Sam K

LIFA Developer

Message 2 of 4
(3,119 Views)

Gracias Sammy, voy a probar ahora a borrar las librerías que me has comentado haber que pasa, respecto al lifa ya probe cuando empece con esto algun ejemplo sencillo y comunicaba perfectamente. Voy a probar lo que me has dicho y con lo que sea doi los resultados.

Thanks Sammy, I'll try now to delete the libraries that you told me see what happens with respect to lifa probe and when I started with this simple example and some perfectly communicated. I'll try what you said and what is doi results.

0 Kudos
Message 3 of 4
(3,119 Views)

Cuando borro las librerias que me has comentado y le doy a verificar van saliendo avisos de cosas que ya no encuentra dentro del archivo labview interface, ¿de que forma borras tu las librerias para que no salten estos avisos?

0 Kudos
Message 4 of 4
(3,119 Views)