LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how i conect de sensor HC-SR04 in labview interface whit arduino?

how i conect de sensor HC-SR04 in labview interface whit arduino?

 

i have a proyects and i dont have idea in what about conect this sensor i labview 😕

0 Kudos
Message 1 of 12
(4,410 Views)

Almost all of the work is in connecting the sensor to the arduino and writing arduino code. Your LabVIEW program is just going to be a simple serial read. Have you tried Google? There are several tutorials/instructions on how to physically connect and the actual arduino code. Here is just one.

 

p.s. To be a bit frank, I'm surprised that anyone in this day and age needs to be told about Google (or whatever your favorite search engine is).

0 Kudos
Message 2 of 12
(4,383 Views)

Hello sacg94,

 

Thanks for using NI’s forums! Additional to the information that Dennis provided I send you a small example of the NI Community that uses the sensor that you just mentioned. Please note that the example uses the Arduino toolkit for LabVIEW.

 

Example: https://forums.ni.com/t5/LabVIEW-Interface-for-Arduino/Arduino-Uno-HC-SR04-Ultrasonic-sensor-labview...

Toolkit: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019TmpSAE&l=en-US

 

Hope this helps!

 

Regards,

 

Luis C.

National Instruments México

Ingeniería de Aplicaciones

Luis CT
0 Kudos
Message 3 of 12
(4,361 Views)

yeah but the LIFA whit this sensor generate a error in the arduino program 😕

0 Kudos
Message 4 of 12
(4,347 Views)
Instead of the little smiley at the end of your post, you should have included details. What is the error number? Is it coming from the LabVIEW code or the arduino code?
0 Kudos
Message 5 of 12
(4,339 Views)
0 Kudos
Message 6 of 12
(4,334 Views)

its coming from the arduino code 😕

0 Kudos
Message 7 of 12
(4,333 Views)
The image of the LabVIEW does nothing to explain the error and neither does your text. Since you say it is in the arduino code and this is a LabVIEW forum, I would suggest you post to one of the numerous arduino forums. Be sure to include your arduino code to get maximum help.
0 Kudos
Message 8 of 12
(4,316 Views)

okay the image no work  but i need the steps for conect the sensor in my labview 😕 you can help me in this?

0 Kudos
Message 9 of 12
(4,306 Views)
You still have not provided any information on the error you are getting.

Let's be clear on terms. When I ask about the arduino code, it means the c code you download to the arduino. It is this code that the arduino requires to recognize the sensor and to read/control it. The LabVIEW code talks to the arduino over the serial port.
0 Kudos
Message 10 of 12
(4,292 Views)