Skip to content

Commit

Permalink
Initial commit R2023a
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed May 13, 2023
1 parent 344efd5 commit 5b96b4c
Show file tree
Hide file tree
Showing 259 changed files with 166 additions and 167 deletions.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/Libraries/rails_lib.slx
Binary file not shown.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/Libraries/xts_movers_lib.slx
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Parameters for XTS conveyor system
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Actuation and control
xts_ctrl_dead_zone = 0.005; %m
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function [rail_spline, station_data] = xts_generate_spline(track_seg)
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Number of stations per segment type (straight, curved)
numStStraight = 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function [rail_spline, station_data, station_o, station_x, station_y] = xts_generate_track(track_seq)
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Generate spline for Point on Curve Constraint
[rail_spline, station_data] = xts_generate_spline(track_seq);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Mover created using Simscape Multibody general extrusion
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Sizing parameters
xtm_h = 0.0225*2.8;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Rail created using Simscape Multibody general extrusion
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% General parameters
xts_rail_color = [0.0 0.4 0.8];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% The plots below show the requested and current station along the track
% for each mover.
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_xts_system', 'var')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% The plots below show speed and position along the global x-axis for
% each mover.
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_xts_system', 'var')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%
% The plot shows the track of the transport system and the stations along the track.
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_xts_system', 'var')
Expand Down
6 changes: 3 additions & 3 deletions Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Linear Transport System</title><meta name="generator" content="MATLAB 9.13"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-09-19"><meta name="DC.source" content="xts_system.m"><style type="text/css">
--><title>Linear Transport System</title><meta name="generator" content="MATLAB 9.14"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2023-03-14"><meta name="DC.source" content="xts_system.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,7 +67,7 @@



</style></head><body><div class="content"><h1>Linear Transport System</h1><!--introduction--><p>This example shows a linear transport system often used in manufacturing lines. Linear motors drive movers along a track to specified positions. Point-on-Curve Constraints are used to constrain the movement of the mover to the track. The geometry, spline of the track, and specified stopping positions are parameterized using MATLAB, making it easy to reconfigure the system.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#3">Conveyor 1 Subsystem</a></li><li><a href="#4">Mover 1 Subsystem</a></li><li><a href="#5">Mover Subsystem</a></li><li><a href="#6">Rail Subsystem</a></li><li><a href="#7">Simulation Results from Simscape Logging</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="xts_system_01.png" alt=""> <p><img vspace="5" hspace="5" src="xts_system_mechanics_explorer_IMAGE.png" alt=""> </p><h2 id="3">Conveyor 1 Subsystem</h2><p>The system is composed of one rail and two movers. A mechanical reference and a spline defining the path of the rail connect the components in the system.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_02.png" alt=""> <h2 id="4">Mover 1 Subsystem</h2><p>Each mover is controlled independently. The control system tells the mover to which station it should go. Its x and y position are converted to the nearest station number so that the motion control subsystem can tell the mover when to move and stop.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Mover%201','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_03.png" alt=""> <h2 id="5">Mover Subsystem</h2><p>The mover must be constrained to the spline defining the rail such that it follows the rail with a specific orientation. Two Point on Curve constraints ensure that its axis is aligned with the rail, and the Planar Joint ensures that it does not rotate about the rail.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Mover%201/Mover','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_04.png" alt=""> <h2 id="6">Rail Subsystem</h2><p>The rail is defined by a series of straight and curved extrusions. Their lengths and arcs are parameterized so that the track can be modified using MATLAB variables.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Rail/Rail','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_05.png" alt=""> <h2 id="7">Simulation Results from Simscape Logging</h2><p>The plot shows the track of the transport system and the stations along the track.</p><img vspace="5" hspace="5" src="xts_system_06.png" alt=""> <p>The plots below show the requested and current station along the track for each mover.</p><img vspace="5" hspace="5" src="xts_system_07.png" alt=""> <p>The plots below show speed and position along the global x-axis for each mover.</p><img vspace="5" hspace="5" src="xts_system_08.png" alt=""> <p class="footer">Copyright 2017-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022b</a><br></p></div><!--
</style></head><body><div class="content"><h1>Linear Transport System</h1><!--introduction--><p>This example shows a linear transport system often used in manufacturing lines. Linear motors drive movers along a track to specified positions. Point-on-Curve Constraints are used to constrain the movement of the mover to the track. The geometry, spline of the track, and specified stopping positions are parameterized using MATLAB, making it easy to reconfigure the system.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#3">Conveyor 1 Subsystem</a></li><li><a href="#4">Mover 1 Subsystem</a></li><li><a href="#5">Mover Subsystem</a></li><li><a href="#6">Rail Subsystem</a></li><li><a href="#7">Simulation Results from Simscape Logging</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="xts_system_01.png" alt=""> <p><img vspace="5" hspace="5" src="xts_system_mechanics_explorer_IMAGE.png" alt=""> </p><h2 id="3">Conveyor 1 Subsystem</h2><p>The system is composed of one rail and two movers. A mechanical reference and a spline defining the path of the rail connect the components in the system.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_02.png" alt=""> <h2 id="4">Mover 1 Subsystem</h2><p>Each mover is controlled independently. The control system tells the mover to which station it should go. Its x and y position are converted to the nearest station number so that the motion control subsystem can tell the mover when to move and stop.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Mover%201','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_03.png" alt=""> <h2 id="5">Mover Subsystem</h2><p>The mover must be constrained to the spline defining the rail such that it follows the rail with a specific orientation. Two Point on Curve constraints ensure that its axis is aligned with the rail, and the Planar Joint ensures that it does not rotate about the rail.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Mover%201/Mover','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_04.png" alt=""> <h2 id="6">Rail Subsystem</h2><p>The rail is defined by a series of straight and curved extrusions. Their lengths and arcs are parameterized so that the track can be modified using MATLAB variables.</p><p><a href="matlab:open_system('xts_system');open_system('xts_system/Conveyor%201/Rail/Rail','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="xts_system_05.png" alt=""> <h2 id="7">Simulation Results from Simscape Logging</h2><p>The plot shows the track of the transport system and the stations along the track.</p><img vspace="5" hspace="5" src="xts_system_06.png" alt=""> <p>The plots below show the requested and current station along the track for each mover.</p><img vspace="5" hspace="5" src="xts_system_07.png" alt=""> <p>The plots below show speed and position along the global x-axis for each mover.</p><img vspace="5" hspace="5" src="xts_system_08.png" alt=""> <p class="footer">Copyright 2017-2023 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Linear Transport System
%
Expand All @@ -79,7 +79,7 @@
% reconfigure the system.
%
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.
%% Model
Expand Down
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Examples/Extrusions/Conveyors/XTS_1/html/html/xts_system_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Examples/Extrusions/Conveyors/XTS_1/html/xts_system.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% reconfigure the system.
%
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.


%% Model
Expand Down
2 changes: 1 addition & 1 deletion Examples/Extrusions/Conveyors/XTS_1/startup_xts_system.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

addpath(pwd)
addpath([pwd filesep 'CAD']);
Expand Down
Binary file modified Examples/Extrusions/Conveyors/XTS_1/xts_system.slx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Open Differential Testrig</title><meta name="generator" content="MATLAB 9.13"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-09-19"><meta name="DC.source" content="sm_open_differential_testrig.m"><style type="text/css">
--><title>Open Differential Testrig</title><meta name="generator" content="MATLAB 9.14"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2023-03-14"><meta name="DC.source" content="sm_open_differential_testrig.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,15 +67,15 @@



</style></head><body><div class="content"><h1>Open Differential Testrig</h1><!--introduction--><p>This example models an open differential using multiple bevel gears. This gearset enables the axles to rotate at different speeds even though they are connected to the same input shaft</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#3">Open Differential Subsystem</a></li><li><a href="#4">Open Differential Subsystem</a></li><li><a href="#6">Simulation Results from Simscape Logging</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_open_differential_testrig_01.png" alt=""> <p><img vspace="5" hspace="5" src="sm_open_differential_testrig_mechanics_explorer_IMAGE.png" alt=""> </p><h2 id="3">Open Differential Subsystem</h2><p><a href="matlab:open_system('sm_open_differential_testrig');open_system('sm_open_differential_testrig/Open%20Differential','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="sm_open_differential_testrig_02.png" alt=""> <h2 id="4">Open Differential Subsystem</h2><p>The Bevel Gear Constraint requires that the rest of the mechanism hold the two frames to which it is connected in alignment. This subsystem has the necessary constraints and parameterized Rigid Transforms to hold the frames in the right position and orientation.</p><p><a href="matlab:open_system('sm_open_differential_testrig');open_system('sm_open_differential_testrig/Open%20Differential/Differential%20Pinion%20to%20Axles/Constraints','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="sm_open_differential_testrig_03.png" alt=""> <h2 id="6">Simulation Results from Simscape Logging</h2><p>The plot below shows the input shaft and axle shaft speeds. A step change to the load on one of the axles causes the two axles to spin at different speeds.</p><img vspace="5" hspace="5" src="sm_open_differential_testrig_04.png" alt=""> <p class="footer">Copyright 2017-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022b</a><br></p></div><!--
</style></head><body><div class="content"><h1>Open Differential Testrig</h1><!--introduction--><p>This example models an open differential using multiple bevel gears. This gearset enables the axles to rotate at different speeds even though they are connected to the same input shaft</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#3">Open Differential Subsystem</a></li><li><a href="#4">Open Differential Subsystem</a></li><li><a href="#6">Simulation Results from Simscape Logging</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_open_differential_testrig_01.png" alt=""> <p><img vspace="5" hspace="5" src="sm_open_differential_testrig_mechanics_explorer_IMAGE.png" alt=""> </p><h2 id="3">Open Differential Subsystem</h2><p><a href="matlab:open_system('sm_open_differential_testrig');open_system('sm_open_differential_testrig/Open%20Differential','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="sm_open_differential_testrig_02.png" alt=""> <h2 id="4">Open Differential Subsystem</h2><p>The Bevel Gear Constraint requires that the rest of the mechanism hold the two frames to which it is connected in alignment. This subsystem has the necessary constraints and parameterized Rigid Transforms to hold the frames in the right position and orientation.</p><p><a href="matlab:open_system('sm_open_differential_testrig');open_system('sm_open_differential_testrig/Open%20Differential/Differential%20Pinion%20to%20Axles/Constraints','force');">Open Subsystem</a></p><img vspace="5" hspace="5" src="sm_open_differential_testrig_03.png" alt=""> <h2 id="6">Simulation Results from Simscape Logging</h2><p>The plot below shows the input shaft and axle shaft speeds. A step change to the load on one of the axles causes the two axles to spin at different speeds.</p><img vspace="5" hspace="5" src="sm_open_differential_testrig_04.png" alt=""> <p class="footer">Copyright 2017-2023 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Open Differential Testrig
%
% This example models an open differential using multiple bevel gears.
% This gearset enables the axles to rotate at different speeds even though
% they are connected to the same input shaft
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% This gearset enables the axles to rotate at different speeds even though
% they are connected to the same input shaft
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.



Expand Down
Binary file modified Examples/Gears/Differential/sm_open_differential_testrig.slx
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Parameters for sm_open_differential_testrig
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

odiff.pinion.rad = 0.075;
odiff.pinion.color = [0.0 0.4 0.6];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% to the load on one of the axles causes the two axles to spin at different
% speeds.
%
% Copyright 2017-2022 The MathWorks, Inc.
% Copyright 2017-2023 The MathWorks, Inc.

% Generate simulation results if they don't exist
if ~exist('simlog_sm_open_differential_testrig', 'var')
Expand Down
Loading

0 comments on commit 5b96b4c

Please sign in to comment.