viewSolution
Open Kinematics Solver Viewer window to visualize KinematicsSolver solution
Since R2020a
Syntax
Description
viewSolution(
opens a Kinematics Solver
Viewer window to visualize the mechanism corresponding to the latest solution computed by
the ks
)solve
function for the
KinematicsSolver
object ks
.
Note
An error occurs if the
solve
function was not invoked before calling theviewSolution
function.If the
statusFlag
corresponding to the last call to solve is -3, the state returned by the solver is not kinematically feasible. In this case, the mechanism rendered in the viewer is not physically realizable.
The Kinematics Solver Viewer window is shown in the following figure. This pane
provides visual feedback on the mechanism that you are analysing. Select the Update
Visualization button or press F5 to view the mechanism
that corresponds to the latest solution of ks
. Use the viewer to
examine the mechanism from different perspectives by selecting the standard view or by
rotating, panning, and zooming the mechanism. Right-click the window to access a
context-sensitive menu. This menu provides additional options that allow you to change the
background color, split the visualization window into multiple tiles, and modify the view
convention from the default +Z up (XY Top) setting.
Kinematics Solver Viewer Window
Examples
Input Arguments
Version History
Introduced in R2020a