Name | Description |
---|---|
RadioButtonSource | Boolean signal source that mimis a radio button |
TrigButton | Button that sets its output y to true when pressing starts and otherwise sets its output to false |
PressButton | Button that sets its output y to true when pressed down and changed to false when button is released |
ToggleButton | Button that sets its value to the opposite of its previous value when pressed down and then keeps this value until pressed anew |
Boolean signal source that mimics a radio button: Via a table, a radio button is pressed (i.e., the output 'on' is set to true) and is reset when an element of the Boolean vector 'reset' becomes true. If both appear at the same time instant, setting the button according to the table has a higher priority as reseting the button. Example:
RadioButtonSource start(buttonTimeTable={1,3}, reset={stop.on}); RadioButtonSource stop (buttonTimeTable={2,4}, reset={start.on});
The "start" button is pressed at time=1 s and time=3 s, whereas the "stop" button is pressed at time=2 s and time=4 s. This gives the following result:
time [s] | start.on | stop.on |
---|---|---|
0 | false | false |
1 | false | false |
1 | true | false |
2 | true | false |
2 | false | true |
3 | false | true |
3 | true | false |
4 | true | false |
4 | false | true |
Name | Description |
---|---|
buttonTimeTable[:] | Time instants where button is pressed [s] |
Time varying expressions | |
reset[:] | Reset button to false, if an element of reset becomes true |
Name | Description |
---|---|
on |
Name | Description |
---|---|
label | |
useGraphicalOutput |
Name | Description |
---|---|
y |
Name | Description |
---|---|
label | |
useGraphicalOutput |
Name | Description |
---|---|
y |
Name | Description |
---|---|
label |
Name | Description |
---|---|
y |