Main Content

closePreview

Close preview of live point cloud data from SICK 3-D lidar sensor

Since R2026a

    Description

    Add-On Required: This feature requires the Lidar Toolbox Support Package for SICK Lidar Sensors add-on.

    closePreview(slObj) closes the preview window that displays live point cloud data from the sicklidar object slObj.

    example

    Examples

    collapse all

    Create a sicklidar object. Ensure that you specify the correct IP address for your sensor.

    slObj = sicklidar(IPAddress="192.168.0.112");

    Preview the point cloud data using the preview object function of the sicklidar object. The preview window opens with the axes limits specified by the three vectors you pass to the preview function. Note that you must close the preview window before you can use the read object function.

    preview(slObj,[-5 20],[-10 20],[-1 3])

    After you preview the data, close the preview window by using the closePreview object function.

    closePreview(slObj)

    Input Arguments

    collapse all

    SICK 3-D lidar sensor connection, specified as a sicklidar object.

    Version History

    Introduced in R2026a