MotionView User's Guide

Control State Equation Panel - User-Function Tab

Control State Equation Panel - User-Function Tab

Previous topic Next topic No expanding text in this topic  

Control State Equation Panel - User-Function Tab

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The User-Function tab is used to provide user-subroutine related information for the control state equation.

control_state_equations_panel_user_func_tab_mv

Control State Equation panel – User-Function tab

User expr

Provide an expression with the USER solver function with parameters being passed to the user subroutine.

Use local file and function name

Activate the check box to specify a local file where the subroutine code can be accessed by the solver.  If this option is not specified, MotionSolve will search for a subroutine following its User Subroutine Loading Rules.

Local File

Select the local file for the subroutine.  The type of file to be specified will depend on the selected Function Type.  For example if DLL/SO is selected, you can specify a file with a .dll extension (for Windows) or an .so extension (for Linux).

Function Type

Valid options for MotionSolve:

DLL/SO
Python
Matlab

For the Adams solver, only the DLL/SO is valid.

Function name

Specify the function name in the subroutine that is used to read the control state equation.  MotionView provides GSESUB as the default, which is the default function used by MotionSolve and Adams.

XXFunction

Specify the function name in the subroutine that is used to compute the partial derivatives of the states.  The default function name is GSEXX.

XUFunction

Specify the function name in the subroutine that is used to compute the partial derivatives of the states with respect to the inputs.  The default function name is GSEXU.

YXFunction

Specify the function name in the subroutine that is used to compute the partial derivatives of output with respect to the states.  The default function name is GSEYX.

YUFunction

Specify the function name in the subroutine that is used to compute the partial derivatives of the output with respect to the inputs.  The default function name is GSEYU.