Model Drivetrain Noise
This example shows how to inject a fault into a drivetrain using a Torque Noise Source block. Injecting noise into your model allows you to predict how your actual physical system responds when it experiences environmental or internal disturbances. It also allows you to test the robustness and responsiveness of your control system.
In the example, the noise is injected into one of the sprockets on a metal sheet feeder that is moving a piece of stock. Although you can perform most of the steps in this example using tools that the Simulink® and Simscape™ Driveline™ user interfaces provide, programmatic commands are supplied. You can combine the programmatic commands to create a script for parameter sweeps.
Open the model. At the MATLAB® command prompt, enter:
openExample('sdl/SheetMetalFeederExample') model = 'SheetMetalFeeder';
Simulate the model and plot the results.
Script for Generating and Plotting Simulation Results
Add, configure, connect, and arrange these blocks as shown:
Step block — Specify
7.5
for the Step time parameter and300
for the Final value parameter.Simulink-PS Converter block
Mechanical Rotational Reference block
Torque Noise Source block — For the Sample time, specify
1e-1
, for Repeatability, selectSpecify seed
, and for Seed specify0
.
Script for Adding, Configuring, Connecting, and Arranging Blocks
Simulate the model and plot the results.
Script for Generating and Plotting Simulation Results
The noise injected at simulation time, t = 7.5 seconds introduces torque disturbances.
Zoom in to see the effects of the disturbance.
When the noise source torque exceeds ±50 N*m, it most significantly effects the torque applied by the sprocket and, therefore, the position of the stock.
See Also
Torque Noise Source | Simulink-PS Converter | Step | Mechanical Rotational Reference | Sinusoidal Torque Source | Rotational Damper