smbshow

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.3, Creation date: 2017-01-08, Last change: 2025-09-14

shows the system/subsystem diagram of the current block



See Also: smbshow , smbGetSubSystempath , smbDrawNow

Example Illustration

 missing image of smbshow(block)

Syntax

smbshow([block])

Input Parameter

block: block handle';default is gcb




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, smbshow, is designed to display the system or subsystem diagram of a specified block in Simulink. It is part of the SG-Library and was created by Tim Lueth on January 8, 2017.

Input Parameters

Algorithm Explanation

The function begins by setting the variable block to the current block using gcb. It then checks if there are any input arguments provided (nargin>=1) and if the first argument is not empty (~isempty(varargin{1})). If both conditions are true, it assigns the first input argument to block.

Next, the function calls open_system with two arguments: the path to the subsystem obtained from smbGetSubSystempath(block) and the option 'tab'. This opens the specified system or subsystem diagram in a new tab within the Simulink environment.

Algorithm explaination created using ChatGPT on 2025-08-18 21:47. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21