Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Customizing Rangefinder Indicators (Robotics Module)

LabVIEW 2013 Robotics Module Help

Edition Date: June 2013

Part Number: 372983D-01

»View Product Info

You can customize some properties that compass, attitude, and rangefinder indicators have in common. You also can modify additional properties of rangefinder indicators, as described in the following sections.

Changing the Plot Range and Scale

To change the range of distances for which a rangefinder indicator displays data, right-click the indicator and select Rangefinder Properties from the shortcut menu to display the Rangefinder Indicator dialog box.

  • To set a static maximum distance, remove the checkmark from the AutoScale checkbox, if necessary, and enter the value in the Fit to Radius control. You can use any unit of measurement to specify distance values. However, always use consistent units when you specify these values.
  • To configure the indicator to automatically include the largest distance at which an obstacle exists, place a checkmark in the AutoScale checkbox. When the AutoScale checkbox contains a checkmark, LabVIEW disables the Fit to Radius control and ignores its value.
Tip  The right side of the Rangefinder Indicator dialog box displays a preview of the current configuration so you can see how changes look before you apply them to the indicator.

Customizing the Appearance of Obstacles Detected at the Same Angle

The rangefinder indicator can display obstacles that exist at the same angle but at different distances. You might want to customize the appearance of obstacles that appear at different distances within the sensor field of view so you can differentiate between them. The following front panel shows a simple example of customizing the appearance of two rows of obstacles.

Complete the following steps to customize the appearances of rows of obstacles:

  1. Right-click the indicator and select Rangefinder Properties from the shortcut menu to display the Rangefinder Indicator dialog box.
  2. At the bottom of the dialog box, set the number of the obstacle row you want to customize in the Data Row control. The 0 Data Row includes the first obstacle at each angle, the 1 Data Row includes the second obstacle at each angle, and so on.
  3. Use the other controls in this section of the dialog box to customize the appearance of obstacles in each row.

Drawing Lines That Connect Obstacles

By default, the rangefinder indicator displays obstacles as single points. You can configure a rangefinder indicator to draw lines that connect obstacles in the same row, as shown in the front panel in the previous section.

Complete the following steps to configure the indicator to draw lines between obstacles in the same row:

  1. Right-click the indicator and select Rangefinder Properties from the shortcut menu to display the Rangefinder Indicator dialog box.
  2. At the bottom of the dialog box, set the number of the obstacle row you want to customize in the Data Row control. The 0 Data Row includes the first obstacle at each angle, the 1 Data Row includes the second obstacle at each angle, and so on.
  3. Place a checkmark in the Draw Lines checkbox.
  4. (Optional) In the Max Line Distance control, enter the distance between obstacles at which you want to stop drawing connecting lines. LabVIEW draws lines between any points closer than the Max Line Distance. Inf means LabVIEW draws lines between all obstacles in the same row, no matter the distance.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit