Hokuyo URG Series Instrument Driver Readme
To rate this instrument driver, go to the driver download page on the Instrument Driver Network.
1. Overview
Instrument Driver Technology: LabVIEW Plug and Play (project-style)
Manufacturer: Hokuyo
Supported Language(s): LabVIEW
Supported Model(s): UTM-30LX, UHG-08LX, UBG-04LX-F01, URG-04LX (in SCIP
2.0 mode), UTM-30LX-EW(in SCIP 2.2 mode)
Model(s) Tested: URG-04LX, UTM-30LX, UTM-30LX-EW
Interface(s): USB, Serial, Ethernet
Firmware Revision(s) Tested: URG-04LX: 3.1.00,
UTM-30LX: 1.31, UTM-30LX-EW: 1.1.3 (2012-01-10)
Certified: Yes
NI Supported: Yes
Source Code Available: Yes
Driver Revision: 2.4
Original Release Date: 06/20/2008
Current Revision Date: 07/25/2012
2. Required Software
Some software components need to be installed before using this instrument driver. The minimum versions of these components are listed below, and can be downloaded from the Download Site.
VISA 5.0
Hokuyo URG USB Driver
Refer to the LabVIEW Help for more information about software requirements. You access the LabVIEW Help by selecting Help»Search the LabVIEW Help.
To create a VISA Ethernet device for ethernet-based LIDAR units open Measure and Automation Explorer (MAX) and complete the following steps:
- Right-click on Devices and Interfaces
and select Create New.
- Select VISA TCP/IP Resource from
the list.
- Select the Raw Socket radio
button and enter the IP Address and Port Number as specified by the
manual for your instrument. The default IP of Hokuyo LIDARs is
192.168.0.10 and the port is 10940
- You can then give your TCP/IP Resource a VISA
alias. Follow the rest of the wizard’s instructions.
- You should see your device listed under VISA
TCP/IP Resources.
For ethernet-based LIDAR units on CompactRIO use the device string TCP0::<IP ADDRESS OF UNIT>::10940::SOCKET. The default IP of Hokuyo LIDARs is 192.168.0.10
3. Known Issues
To report issues or provide feedback about this instrument driver, please contact technical support..
- If you are upgrading your existing application from version
1.0 to
version 2.x of the instrument driver, the upgraded Initialize VI will
be broken if a value is not connected to the Protocol connector on the
connector pane. The Protocol input is now required because the 2.x
version of the instrument driver only supports SCIP 2.0. If your
application requires the use of SCIP 1.1, please continue using Version
1.0 of the instrument driver.
-
Although the support for the UHG-08LX, and UBG-04LX-F01 has
been implemented in this driver, they have not been tested.
- Not all VIs or settings in a VI in this instrument driver
are fully
supported by all instruments models. This is documented throughout the
instrument driver. Refer to instrument documentation for more details
pertaining to your specific model. Examples of some potential
differences in models:
- UTM-30LX
returns a command error when attempting to configure serial baud rate
(device does not have a serial interface), but URG-04LX accepts command
regardless of whether it is connected by USB or serial.
- Though documented in the SCIP 2.0 spec, no device tested
works with configure laser sensitivity mode
- The
UTM-30LX device accepts 2-byte encoding instructions when acquiring
data, but returns the same data as if it were issued a 3-byte command
resulting in bad data.
- Once an instrument is put into time
configuration mode through the Match Time VI, the only commands
accepted by the instrument will be Match Time commands until it is
taken out of this mode or the instrument is power cycled.
4. Revision History
The latest version of this and other LabVIEW and LabWindows/CVI instrument drivers can be downloaded at the Instrument Driver Network.
REV 1.0, 06/20/2008
Modified By: Logan Lamb, Austin, TX.
Original Release.
REV 2.0, 02/10/2008
Modified By: Travis Mansfield, Austin, TX.
Overhaul of driver to improve design, and add functionality.
- Support
for SCIP 1.1 has been deprecated, however all known Hokuyo Lidar
drivers previously supported have the capability of working with driver
version 2.0. If your driver was using SCIP 1.1 protocol,
refer to
your instrument's manual to determine how to configure your instrument
to use SCIP 2.0, and make modifications to any VIs which use the
instrument driver's initialize VI.
- The following public VIs were added to the instrument
driver:
- Configure Laser Sensitivity
- Sensor Specification
- Match Time
- Sensor State
- Error handling was greatly improved to return errors
specific to each command, and general command errors
- The following VIs were changed:
- Initialize
- Reset? input added
- ID Query? input added
- Protocol
input gives error for SCIP 1.1 mode, but has a new input "Convert to
latest" which attempts to put a SCIP 1.1 instrument into SCIP 2.0 mode
- Protocol
input is now required. If unwired before, your VI will break
after upgrading (the old default was SCIP 1.1 is not supported, so a VI
change needed to be made).
- Configure
Serial Baud Rate
- The VI now sets the VISA baud rate after setting the
instrument's serial baud rate, existing code which set the VISA
property node after calling this VI should continue to function
- The VI waits one second after issuing the command to
the instrument to give the instrument command time to take effect
- Acquire Data
- A new Data Encoding Width input was added to
specify whether you would like to perform a 2 or 3 byte encoded data
read
- A
major bug was fixed in the VI which corrects incorrect computation of
the Direction output on instruments other than the URG-04LX which may
have different front steps and angular resolutions than the URG-04LX
- Configure Laser Power - Ignore Errors input was added
- Close - was modifed to attempt to turn off the
instrument's laser regardless of whether or not an error is input to
the VI
- VI Tree, and palette menus - modified
to include the new VIs
REV 2.1, 08/20/2009
Modified By: Nicu Stiurca, Austin, TX.
Modified driver to work on cRIO.
- The following VIs were renamed:
- Initialize renamed to Initialize-Standard. This VI still
does all the initialization.
- The following VIs were created:
- Initialize-cRIO USB
- A simple wrapper which typecasts the VISA resource type
to the type expected by Initialize-Standard.vi.
- Initialize
- Polymorphic VI composed of Initialize-Standard (ie, the
old Initialize) and Initialize-cRIO USB.
- The following VIs were modified:
- Hokuyo URG Series Configure and Acquire Data
- Uses the new (polymorphic) Initialize.vi.
- Graph no longer uses a logarithmic scale.
- Initialize-Instr (ie, the old Initialize)
- Only tries to set serial-specific attributes if the
underlying type of the VISA resource is Serial.
- No longer configures the VISA resource to automatically
append the termination character to all messages.
- Added UHG-08LX to the list of officially supported
models.
- Query Instrument
- Appends
every command with a termination character (newline) since VISA cannot
be configured to do so automatically regardless of whether the
underlying resource type is Serial or USB Raw.
REV 2.2, 03/10/2011
Modified By: Joe Daily, Austin, TX.
Modified driver to work with multi-echo, SCIP 2.2, Ethernet based units
and updated to support new models.
- The following VIs were created:
- Hokuyo URG Series Configure and Acquire Multi-Echo.vi
- An example for use with multi-echo units.
- Acquire Multi Echo.vi
- Decodes hd command from multi-echo units.
- The following VIs were modified:
- Hokuyo URG Series Configure and Acquire Data
- Changed Protocol to include SCIP 2.2
- Initialize-Standard
- Added Tough-URG to the list of officially supported
models.
- Changed Protocol to include SCIP 2.2.
- Set SCIP Mode
- Changed Protocol to include SCIP 2.2.
REV 2.3, 06/05/2012
Modified By: Godpheray Pan, Shanghai, China.
Add support for UTM-30LX-EW(in SCIP 2.2 mode)
- The following VIs were modified:
- Hokuyo URG Series Configure and Acquire Multi-Echo.vi
- Rewrite the decoder part.
- Acquire Multi Echo .vi
- Rewrite the decoder part.
- Add HE command support
REV 2.4, 07/25/2012
Modified By: Zhen Wang, Shanghai, China.
Add support for Continuous acquisition and Continuous Multiecho acquisition.
- The following VIs were created:
- Query Scan Response Message.vi
- Read scan response message in continuous acquisition mode.
- Acquire Continuous Data.vi
- A new command to start continuous scanning and return
a scan response message for each measurement scan.
- Acquire Continuous Multi Echo Data.vi
- A new command to start continuous multi-echo scanning and return
a scan response message for each measurement scan.
- Hokuyo URG Series Configure and Acquire Continuous Data.vi
- A new example for using continuous acquisition.