05-11-2013 04:48 PM
I can´t start communication with my ultrasonic sensor in LabVIEW, I use this page code https://decibel.ni.com/content/thread/12971, but I can´t do it work, I add the ultrasonic.h Library to LIFAbase, but i have the same result, someone knows how use this sensor with arduino UNO??
The error that show me LabVIEW appears in the glasses icon on ultrasonic.vi
I can did it work, the problem was that the sketch in arduino was not the correct, so I download another ultrasonic library for arduino, and upload the program to arduino again, and done!, the sensor works!, you need to be sure that you upload the LIFA base edited for ultrasonic sensor and have the correctly library for arduino.....
Anyway thanks Nathan_B.
05-12-2013 02:05 AM
Have you tried the one that I posted here?
06-10-2013 04:06 PM
HI
I had the same problem, I had error when I ran the probgram of this page
https://decibel.ni.com/content/thread/12971
I try with this program with out labview, and ran well, but when I use to labview, I had a problem, the progran it´s suposed to ran with out error, but the indicador "distance" doesn´t apear nothing
If I use this labview interface edit http://dl.dropbox.com/u/8067369/LabVIEWInterface.pde
I have some problems like "redefinition "void setup(){""
What can I do?
06-10-2013 04:31 PM
As I said in the other thread, you can't define your variable in the processCommand function. Put it up with all the othe variable definitions. Unfortunately, this method requires you to hardcode your inputs for the variable creation. Also, without the library that you are using we can't fully help you with your issue if you are still unable to figure it out.
If you are getting redefinition errors then you either have the function declared twice or multiple files with the same definition are getting opened simultaneously.
More details will yield better results. Have you tried to do it like the link that I posted just above?
06-10-2013 06:45 PM
hey omcl did you can solve the problem??...... prove with this library https://github.com/elrodri/Ultrasonic-HC-SR04
06-10-2013 11:30 PM
Hi
I was use this library
http://www.robot-electronics.co.uk/files/arduino_srf04.ino
If I dowload with out labview, work well, but IF I charge with labview doesn´t Have error, but doen´t give me distance
OK LEOVGL93 I try the library that you bring, but I still have the proble, that, Labview doesn´t have error, but don´t show me distance
thankswas try with this library
https://github.com/elrodri/Ultrasonic-HC-SR04/blob/master/Ultrasonic/Ultrasonic.h
06-14-2013 12:25 AM
He I solve my problemI use the LIFA SRF05 LV9.zip
in this pag
https://decibel.ni.com/content/message/38645#38645#38645
and work perfect
I hope help with this page
12-12-2016 02:42 AM
i used your code and it didnt work with me and the errors shows says what in the picture
please help me
iam using ultrasonic HC-SR04
12-12-2016 07:38 PM
LIFA is no longer supported and was replaced by LINX a couple years ago. LINX has native support for the HC-SR04 sensor.
12-13-2016 08:28 PM
i used LINX and it didnt work so i searched for another way