LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

!! Arduino Uno + HC-SR04 Ultrasonic sensor + labview Help!!

Solved!
Go to solution

thanks for the VI, Saludos desde Mexico!

0 Kudos
Message 41 of 72
(7,140 Views)

hola juan me podrias ayudar a medir distancia con arduino y el sensor ultrasonico hy-sfr05?

0 Kudos
Message 42 of 72
(7,140 Views)

I dont know what im missing...i already follow de pdf and create the block for labview 2013...i put the ultrasonic folder to the arduino libraries...and..i changed the labviewinterface for the one from the link...buuut..it doesnt compiles...Can some pleeeeease help me..anyone?..i need this thing working as soon as possible...thanks..

0 Kudos
Message 43 of 72
(7,140 Views)

Hi good day, i am having troubles with the step by step pdf and i was wondering if you could help me. I am currently using the labview 2010 and i followed the steps but i dont know how to create the indicator which type is or where can i find it? thanks a lot have a nice day

0 Kudos
Message 44 of 72
(7,140 Views)

buenos dias compañero, necesito una ayuda de ustedes estoy trabajando con el sensor ultrasonico HC- SR04 en arduino ya me funciona  con una programacion, pero en labview no me funciona y no se que hacer, agradezco que me colaboren con esto.

#define PIN_TRIG 12

#define PIN_ECO  13

void setup() {

  // Inicializacion de la comunicacion serial

  Serial.begin (9600); 

  // Inicializacion de pines digitales

  pinMode(PIN_TRIG, OUTPUT);

  pinMode(PIN_ECO, INPUT);

}

void loop() {

  long duracion, distancia;  // Variables

 

  /* Hacer el disparo */

  digitalWrite(PIN_TRIG, LOW); 

  delayMicroseconds(2);

  digitalWrite(PIN_TRIG, HIGH);  // Flanco ascendente

  delayMicroseconds(10);        // Duracion del pulso

  digitalWrite(PIN_TRIG, LOW);  // Flanco descendente

 

  /* Recepcion del eco de respuesta */

  duracion = pulseIn(PIN_ECO, HIGH);

 

  /* Calculo de la distancia efectiva */

  distancia = (duracion/2) / 29;

/* Imprimir resultados a la terminal serial */

  if (distancia >= 500 || distancia <= 0){

    Serial.println("Fuera de rango");

  }

  else {

    Serial.print(distancia);

    Serial.println(" cm");

  }

 

  // Retardo para disminuir la frecuencia de las lecturas

  delay(500); 

}

0 Kudos
Message 46 of 72
(7,140 Views)

hey i am having problem in Centre block containing "Arduino cm" any one can explain me what is that and how can i get it from my fucntion block?

0 Kudos
Message 47 of 72
(7,140 Views)

Have you looked at the functions that I created in the documents section specifically for this?

However, if you are using LabVIEW 2011 or later, I highly recommend that you use LINX because it has this sensor already built-in.

0 Kudos
Message 48 of 72
(7,140 Views)

Yes Natahn_B i have included this file but it shows error 5003. Also i have tried all possible way to remove it but it can not get fixed.

Thanks.

0 Kudos
Message 49 of 72
(7,140 Views)

Have you tried LINX?

If you cannot use LINX, you will have to provide more information regarding your situation.  What Arduino are you using?  Please post your VI. 

0 Kudos
Message 50 of 72
(7,140 Views)