smbCreateConnection

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.0, Creation date: 2016-11-16, Last change: 2025-09-14

adds a connection line between 2 blocks.

Description

This function connects Block within SimScape not in Simulink! So make sure that the used Block have just one Input Port.
Blocks are typically such as .S (Stator), .M(Mover), .B(Base), .F(Follower)
Without any T parameter, the blocks are connected directly.
With parameter 'align', there will be a rotation around y to connect two links or two joint. Solids have their frames looking inside. Joints have their frames towards outside.

See Also: smbCreateConnection , smbCreateSG , smbCreateSGJoint , smbCreateSGNode , smbCreateStopJointC , smbCreateStopJointR , smbCopyConnections , smbCreateDrive , smbCreateSineWave

Example Illustration

 missing image of smbCreateConnection(F1,F2,T)

Syntax

h=smbCreateConnection(F1,F2,[T])

Input Parameter

F1: Frame 1
F2: Frame 2
T: Additional Frame for rotation; 'match','align'

Output Parameter

h: handle to line

Examples


smbCreateConnection('WORLD.ORIGIN','LINK1.B');




Copyright 2016-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

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