A Selector element provides an easy way to use nested-if statement, conditional logic in GoldSim. Selector elements have one or more if...then statements as inputs and Selector have a single output, which can be a value or a condition, and can be specified as a scalar, a vector or a matrix.
In the example below, all switches (i.e. if...then statements) are defined as a function of ETime. Typically, you would not use a Selector in this way (a Time Series element provides a more convenient solution). But, it provides a nice example of how a Selector functions.
To Open the Model File:
- Start GoldSim
- Click on the File and select Open Example...
- Browse to General Examples and select the file called Selector.gsm
Comments
0 comments
Please sign in to leave a comment.