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
- block: This is the handle of the block whose diagram you want to display. If no block is specified, the default is the current block, referred to as
gcb
(get current block).
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