To download NI software, including the products shown below, visit ni.com/downloads.
Overview
In this example, we show how LabVIEW can be used to interface with the Hokuyo URG-04LX-UG01 Laser Range Finder.
Description
The URG-04LX-UG01 is a small, low cost, bus powered LiDAR that can be easily used to acquire fast and accurate distance measurements across a 240° range. The attached code below can be used not only for visualising a simple algorithmic depiction of how a USB device can be controlled using the NI-VISA drivers, but also can be used as API to be integrated within larger application frameworks based upon acquiring distance measurements from the URG-04LX-UG01.
Requirement
Steps to Implement or Execute Code
Additional Information or References
NI Snippet
It is recommended that when analyzing the LabVIEW code, you also have access to the accompanying datasheet for the URG-04LX-UG-01 which outlines the specifications of the SCIP 2.0 communications interface.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Edit: I was getting error: Invalid buffer mask specified but I followed this white paper instead and it worked.