AnalogSwitch
Allows turning current on and off. See https://en.wikipedia.org/wiki/Analogue_switch
Note: this model is in beta. Please contact us if you find any unusual behavior.
Example usage
flux.simulationModel = { type: "analogSwitch", r_on: 20, r_off: 1e10, map_input_to_terminal_uid: "your-terminal-element-uid", map_output_to_terminal_uid: "your-terminal-element-uid"}Fields
| Name | Type | Default | Description |
|---|---|---|---|
type | "analogSwitch" | The type of this object, always the string literal "analogSwitch" | |
r_on | number | 20 | On resistance |
r_off | number | 1e10 | Off resistance |
map_input_to_terminal_uid | string | The terminal ID corresponding to the input. | |
map_output_to_terminal_uid | string | The terminal ID corresponding to the output. |
Was this page helpful?