
Function
To amplify or weaken signals, you can use the gain function. The way it works is as follows: a signal is fed into the gain, amplified and output again. The signal is not changed by this.
Constructors
There are two different constructor variants. Once with the default value and once with a double value.
|
default constructor |
![]() |
|
constructor with double value |
![]() |
Method
To call the method as well, it is set before the double value.
|
constructor with method |
![]() |
General available methods
There are also methods that can be used in general. The four common ones are mentioned here.
|
label - Names connections and blocks in the respective setting. |
![]() |
|
name - Names modules in required settings. |
![]() |
|
set - For example, scope settings can be set by code. |
![]() |
|
show - Auto opens the measure display, e.g. Osci or PropertyWindow. |
![]() |
Further assistance
If you want to read up some more, you should look here in the JavaDoc.
There are some experiments where you can take a closer look at the system gain.
Constructor
![]() Example for simulation just using constructor.
|
Example for simulation just using constructor.
|
Method
![]() Example for simulation with complete methods.
|
Example for simulation with complete methods.
|
General available methods
![]() Example label
|
Use of the label function.
|
|
![]() Example name
|
Use of the name function.
|
|
![]() Example set
|
Use of the set function.
|
|
![]() Example show
|
Use of the show function.
|
Examples
There are some experiments where you can take a closer look at the system gain.
![]() Example with gain
|
Initialization of systems using explicit method names.
|
| Gain | Amplified sine signal |
|---|---|
| 1 (default) | ![]() |
| 1.5 | ![]() |
| 0.5 | ![]() |
| -0.5 | ![]() |
















