11-29-2013 05:55 PM
thanks for the VI, Saludos desde Mexico!
02-27-2014 09:15 PM
hola juan me podrias ayudar a medir distancia con arduino y el sensor ultrasonico hy-sfr05?
03-09-2014 10:31 PM
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..
04-06-2014 03:51 PM
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
05-16-2014 10:44 AM
got it working here have a look:
05-26-2014 07:45 AM
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);
}
08-05-2014 12:57 PM
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?
08-05-2014 04:50 PM
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.
08-05-2014 11:34 PM
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.
08-05-2014 11:38 PM
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.