This example shows how to inject a fault into a drivetrain using aTorque Noise Source块。将噪声注入你的模型允许你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®andSimscape™ 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:
model ='sdl_sheet_metal_feeder'; open_system(model)
Simulate the model and plot the results.
Script for Generating and Plotting Simulation Results
Add, configure, connect, and arrange these blocks as shown:
Stepblock — Specify7.5
for theStep timeparameter and300
for theFinal valueparameter.
Simulink-PS Converterblock
Mechanical Rotational Referenceblock
Torque Noise Sourceblock — For theSample time, specify1e-1
, forRepeatability, selectSpecify seed
, and forSeedspecify0
.
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.
Mechanical Rotational Reference|Rotational Damper|Simulink-PS Converter|Sinusoidal Torque Source|Step|Torque Noise Source