Slider Gain
Vary scalar gain using slider
Libraries:
Simulink /
Math Operations
Description
The Slider Gain block performs a scalar gain that you can modify during simulation. Modify the gain using the slider parameter.
Examples
Simulate Motion in Six Degrees of Freedom (6DOF)
Model six degrees of freedom (6DOF) in Simulink®. The model in this example replicates the motions experienced by an object or vehicle in model in this example replicates axes of rotation (pitch, roll, and yaw) and three axes of translation (heave, surge, and sway). You can switch between using Euler angles and quaternions to model the equations of motion using the representation parameter of the Variant Subsystem block.
Ports
Input
Port_1 — Input signal
scalar | vector | matrix
The Slider Gain block accepts real or complex-valued scalar, vector, or matrix input. The block supports fixed-point data types.
Data Types: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
Output
Port_1 — Input multiplied by gain
scalar | vector | matrix
The Slider Gain block outputs the input multiplied by a constant gain value. When the input to the block is real and gain is complex, the output is complex.
Data Types: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| Boolean
| fixed point
Parameters
Slider gain — Gain value
0
(default) | real value
Chose the gain value applied to the input.
Programmatic Use
Block Parameter:
gain |
Type: character vector |
Values: real scalar |
Default:
'1' |
Low — Lower limit of slider range
0
(default) | real value
Specify the lower limit of the slider range.
Programmatic Use
Block Parameter:
low |
Type: character vector |
Values: real scalar |
Default:
'0' |
High — Upper limit of slider range
2
(default) | real value
Specify the upper limit of the slider range.
Programmatic Use
Block Parameter:
high |
Type: character vector |
Values: real scalar |
Default:
'2' |
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.
Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.
Version History
Introduced before R2006a
See Also
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)