Model Setup / PullDownParameter
Block Name: PullDownParameter
Code File Location: VisualSim/data/expr/PullDownParameterParameter
PullDownParameter is a variable containing a constant that can be of any VisualSim data type. The PullDownParameter is defined by drag-n-drop action from the ModelSetup->PullDownParameter Library folder into the a hierarchical block. The PullDownParameter value and name must be updated before it can be used. The parameter can be modified, prior to the start of each simulation.
Double click of a PullDownParameter allows the user to enter the values that must be present in pull down. Values must be entered in a array and the values in array position defines their position in pull down menu.
Example to define PullDownParameter to select a integer values between 1,2,3,4; the value in "Valid Values" attribute of PullDownParameter must be as {1,2,3,4}
If the user wants to have a Pull Down parameter for String variables, then the attribute "Valid Values" must be defined as {"String1","String2","String3"}
The PullDownParameter can be used only in Hierarchical blocks or class blocks
⇒Note: Illegal data values for the parameter will generate error messages. If the PullDownParameter placed in top level Block Diagram and not in a Hierarchical block, then pull down option will not be avaialble
Refer PullDownParameter Demo Model.
Parameter |
Explanation |
Type |
Example |
Customized Name > New name |
Set the parameter name. |
String |
StopTime |
Parameter (or Customized name) |
Set the value to the define the parameter. |
Any |
10.0 |
Display Name |
Define a unique name for the tooltip |
String |
MyParameter |
Valid Values |
Value assigned for the Parameter |
Int/Double/Long/String |
{1,2,3,4} |
Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications