Main Content


Get the build directory on the NVIDIA hardware



    dir = workspaceDir(hwObj) returns the current workspace directory on the NVIDIA® Jetson™ or NVIDIA DRIVE® target hardware. The workspace directory is where the code generation artifacts are deployed and the executable is built.


    collapse all

    You can check the current workspace directory used by the code generator on an NVIDIA Jetson hardware from the MATLAB® environment using the workspaceDir method of the jetson hardware connection object.

    To create a live hardware connection object, provide the host name or IP address, user name, and password of the target board.

    hwObj = jetson('jetson-board-name','ubuntu','ubuntu');
    ans =

    The output show is representative and will differ from your actual output.

    Input Arguments

    collapse all

    Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.

    Output Arguments

    collapse all

    Character vector specifying fully qualified path to the current workspace directory on the NVIDIA Jetson or NVIDIA DRIVE target hardware.

    Version History

    Introduced in R2019a