# How get total belt length in Simscape multibody belt-cable system

4 views (last 30 days)
Bart on 2 Nov 2023
I'm using the 'Belts and cables' library in Simscape Multibody. My overall setup consists of a Spool at both ends of the belt with several pulleys in between. Is there a built-in manner of determining the total length of the belt from spool to spool?
Regards

Divyanshu on 15 Nov 2023
Hi Bart,
I understand that you are trying to calculate the length of belt/cable from spool to spool.
Unfortunately there is no such built-in function which can directly determine the length of cable between the spools. However a custom MATLAB function can be written to calculate the same.
Here are certain assumptions based on the description:
• Firstly the distance between the spools is known.
• We know the radius of spool.
You can refer the following code and can modify it according to the use-case:
function calculateLength()
windings1 = n1; %number of times cable is wound on spool 1
windings2 = n2; %number of times cable is wound on spool 2
circumference1 = 2*pi*r1;
circumference2 = 2*pi*r2;
totalLength = (winding1)*2*pi*r1 + (winding2)*2*pi*r2 + d;
end
Suphakit Auengcharoensub on 17 Mar 2024
hello .
I have a question . can i measure length of belt-cable end ?
Regards

### Categories

Find more on Assembly in Help Center and File Exchange

R2020a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!