11-20-2015 06:25 AM
Hi guys, I am using LIFA (LabVIEW interface for Arduino), and I was trying to make a pulseIN for hc sr04 ultrasonic module. I am unable to find an example code or make the code myself. Can you please help me?
11-20-2015 10:25 AM
My advice:
Don't use LIFA. It is depreciated and is receiving very little support and will not be updated. Use LINX. This is LIFAs' replacement and was created by the same developer. Don't mix LIFA with LINX. LINX has native support for your HC SR04 sensor and includes an example.
11-20-2015 10:53 AM
Alright, thanks a lot! Hope you don't mind telling me which palette it is in?
11-20-2015 11:22 AM
The example is in the LabVIEW examples folder....Help>>Find Examples... and go to the 'Search' tab and type in "LINX". Choose the example titled "LINX - Ultrasonic.vi" and open it. You might have to replace with the PING.vi subvi with HC -SR04.vi from the LINX pallete under sensors sub-pallette. I don't have the hardware so I can't test.