Documentation Center

  • Trial Software
  • Product Updates

print

Class: simscape.logging.Node
Package: simscape.logging

Print complete logging tree of node object

Syntax

path_to_node.print

Description

path_to_node.print prints the complete logging tree starting with the specified node. path_to_node is a full identifier path to the node, starting with the workspace log variable name.

Examples

Consider the following model. The model name is simple_mech2, and data logging is enabled with the default workspace variable name, simlog.

Return the complete logging tree for the whole model:

simlog.print
     simple_mech2
     +-Ideal_Force_Source
     | +-C
     | | +-v
     | +-R
     | | +-v
     | +-S
     | +-f
     | +-v
     +-MTR
     | +-V
     | | +-v
     | +-f
     +-MTR1
     | +-V
     | | +-v
     | +-f
     +-Mass
     | +-M
     | | +-v
     | +-f
     +-Simulink_PS_Converter
     +-Translational_Damper
     | +-C
     | | +-v
     | +-R
     | | +-v
     | +-f
     | +-v
     +-Translational_Spring
       +-C
       | +-v
       +-R
       | +-v
       +-f
       +-v
       +-x
 

Print the logging tree just for the Mass block:

simlog.Mass.print
     Mass
     +-M
     | +-v
     +-f

See Also

Tutorials

Was this topic helpful?