This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

addOutputVariables

Assign kinematic variables from the KinematicsSolver object as outputs

Syntax

addOutputVariables(ks,ids)

Description

addOutputVariables(ks,ids) assigns as output variables the kinematic variables listed in the KinematicsSolver object ks under the names given in the ids argument. Both joint and frame variables can serve as outputs. Those that do are unknowns to solve for and report on during analysis. Their solution is constrained by target variables and biased toward one of equally plausible solutions, when several exist, by guess variables.

The output is an updated table with the output variables—both new and old—in rows. Each row gives the ID of a variable, the type and block path of the joint to which it belongs if a joint variable, the base and follower frames from which it spawns if a frame variable, and the unit for its numerical value. The variables rank in the order added.

Most variables can be assigned individually. A few must be assigned in groups—axis components alongside rotation angle in spherical primitives; bend angle alongside azimuth angle in constant-velocity primitives. (A bend angle can be assigned individually but the azimuth angle cannot.)

The figure shows the variables of a general KinematicsSolver object. Target (T), guess (G), and output (O) variables can be joint variables (J) or frame variables (F). The same variable can serve as guess and output or as target and output but not as guess and target.

Input Arguments

collapse all

Name of the KinematicsSolver object for which to run the analysis. The object is a kinematic representation of the model from which it derives. It contains the variables upon which the analysis depends.

Example: 'fourBarKS'

Data Types: char | string

Identifiers of the kinematic variables to use. Enter the identifiers as shown in the ID column of the jointVariables, for joint variables, or frameVariables, for frame variables.

Example: 'j1.Rz.q'

Data Types: char | string

Introduced in R2019a