- Open a new Simulink model.
- From the Simulink Library Browser, select the "Simulink" library.
- From the "Simulink" library, drag and drop a "Switch" block onto your model.
- Double-click on the "Switch" block to open its block parameters dialog box.
- In the "Criteria for nonzero outputs" drop-down list, select "u1 > 0".
- In the "Criteria for zero outputs" drop-down list, select "u1 <= 0".
- Connect the input signal to the "u1" input port of the switch block.
- Connect the "y" output port of the switch block to the rest of your Simulink model.
How can I create a 'switch' in the mechanical translational domain of simulink?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm trying to create a sort of 'switch' in the mechanical translational domain of the simulink software. I want a block which will read in a simple input value and, based on that input value, either let the entirety on a mechanical translational signal flow through or block the entirety of the signal. Does anyone know of a way of making this? I'm trying to model a machine with finite elements whereby different finite elements are being 'driven' at different instances based on some input value, hence I require a block which is able to switch on and off which element is being driven.
Thanks in advance.
0 comentarios
Respuestas (1)
Anurag Ojha
el 11 de Mayo de 2023
Hi David,
To create a switch in the mechanical translational domain of Simulink, you can follow these steps:
The switch block will pass the input signal through to the output when the input is positive (greater than zero), and it will output zero when the input is zero or negative (less than or equal to zero). You can adjust the criteria for switching by changing the values in the "Criteria for nonzero outputs" and "Criteria for zero outputs" drop-down lists.
To explore more refer to following MATLAB documents
Hope it helps!!
0 comentarios
Ver también
Categorías
Más información sobre Physical Units en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!