getParameter

Overview

This utility is used to retrieve the value from parameters defined in SimLab.

Syntax

result = simlab.getParameter("SimLab Parameters",valueInDisplayunits (True or False))

where:

  • valueInDisplayunits = True(Default); It returns the value in display units
  • valueInDisplayunits = False; It returns the value in database units

User Case

For automation project, tool input values can be created as parameters and it can be accessed using this utility in scripting.

Why we need this utility?

In motor mesh automation projects, we will have different stator periodicity and rotor periodicity based on number of slots and magnets. These values can be created as parameter in simlab and given as input for periodicity. In future, if user wants to modify the number of slots and magnets, it can be done easily by modifying only the parameter values in parameter browser instead of changing it in script itself, which is complex and time consuming.

Utility Input/output