Ya consegui comunicar los arduino con labview, ahora tengo otro problema y es de codigo asi que igual conguito me puede ayudar... tengo conectado un modulo xbee con un explorer al ordenador y tengo un arduino con un modulo xbee conectado con un sensor en la salida A0. El shield para arduino de xbee viene con tarjeta SD. Yo tengo que recoger el dato de A0 y guardarlo en un archivo txt y mostrarlo por el puerto serial para labview. En el codigo hay que programar dentro del lifa(labview interface for arduino) y hay es donde tengo problemas. Del lifa e borrado la parte de los servos puesto que no la voy a utilizar en labview y me decia que el skecht era demasiado grande. Pongo el codigo haber si alguien sabe solucionar el error. Gracias.

// Standard includes. These should always be included.
#include <SPI.h>
#include "LabVIEWInterface.h"
#include <SD.h>
float i=A0;
float data;
File dataFile;
/*********************************************************************************
** setup()
**
** Initialize the Arduino and setup serial communication.
**
** Input: None
** Output: None
*********************************************************************************/
void setup()
{ Serial.begin(9600) ;
// Initialize Serial Port With The Default Baud Rate[/color]
syncLV();
Serial.print("Initializing SD card...");
pinMode(4,OUTPUT);
if (!SD.begin(4)) {
Serial.println("Card failed, or not present");
return;
}
Serial.println("card initialized.");
// Place your custom setup code here
}
/*********************************************************************************
** loop()
**
** The main loop. This loop runs continuously on the Arduino. It
** receives and processes serial commands from LabVIEW.
**
** Input: None
** Output: None
*********************************************************************************/
void loop()
{
// Check for commands from LabVIEW and process them.
checkForCommand();
// Place your custom loop code here (this may slow down communication with LabVIEW)
dataFile=SD.open("log.txt",FILE_WRITE);
if (dataFile) {
dataFile.println(data);
dataFile.print(",");
Serial.println(data);
Serial.print(",");
dataFile.close();
}
else{
Serial.println("juaja");
}
delay(5000);
data=i;
if(acqMode==1)
{
sampleContinously();
}
}