淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Variables in Designer >
   Defining Local Variables >
       Defining Array Variables           


Defining Array Variables

You can define array variables that contain numbers or strings. Number array variables can be used in component property expressions, while string array variables can be used in certain component property values. To define an array variable, first use either of the following methods to define either a Local variable or a Project variable:

• Defining Local Variables — To define a local variable, in the Project menu, right-click the project name and select Project Variables.

• Defining Project Variables — To define a project variable, in the Project menu, right-click the design name and select Design Properties.

This will open a Properties dialog.

After opening a Properties dialog to define either a local variable or a project variable, click Add, and the Add Property dialog opens:

1. Enter an array variable Name.

2. Choose the Variable radio button.

3. Place a value in the in Value box, separated by commas between square brackets.

After being defined, a variable will be shown in the Variables tab of the Property dialog and also in the Properties window.

 

To add an array variable, click Add Array in the Properties dialog and the Add Array dialog opens:

[spacer]

Use the control buttons at right to add, delete, and reposition rows in the value grid at left. The default is Edit in grid, but you may select Edit in plain text field. Note, however, that quotation marks (“ ”) are required as delimeters when array values are entered in either the grid or text field. Click OK when you have finished entering values.

 

To edit an existing array variable, select the array in the Properties dialog and click Edit and the following dialog opens:

[spacer]

 

You can also edit existing array variable properties in either the Property dialog or Properties window:

[spacer]

If the array variable contains numbers, it can be used in a component property expression wherever a constant is used — as long as the array variable possesses an index that is enclosed in square brackets. Note that the Evaluated Value column of the Properties window shows the current value for the property expression.

 

Adding Text Array Variables

You can also add an array variable that contains a string, also known as a text array variable:

[spacer]

 

To define a text array variable, in the properties field of a component that allows variable references, enter a plus sign prefix to the variable (“+”). This prefix distinguishes variable usage from a simple string:

[spacer]

 

In contrast, the following is an example of the usage for a simple string:

 

 

Note

Text array variables can be used in certain component property values, but not all, and cannot be combined with operators to form more complex expressions.

 

The index for a text array variable reference can either be a constant (1) or can be an index (ii) or even an expression (ii + 1). This allows you to sweep the index and simulate for different values that are stored in the array variable itself. In particular, it also enables you to sweep different text strings. This allows you to set a property to different string values as the index is swept. Following are the properties that currently allow text array variables:

• V_PRBS

• V_PRBS_JITTER

• V_PRBSD

• V_PRBSG_JITTER

• V_PSK

• V_QAM

• V_CPM

 

Text Array Variable references can also be entered into the fields of the Bit pattern data dialog that opens when you click the Bit Pattern button property of the Param Values Tab in the Property Window. For example, this applies to various components found in the "Nexxim Circuit Elements/Independent Sources" component library, such the EYESOURCE component:

[spacer]

You may enter text array variable references in either of the following fields shown above:

• Choose file containing the bitlist

• Enter list of random bits

 

Text and ValueMenu Property Types

You can also create new components that have properties with text array variable references. Entering an expression prefixed with plus sign (“+”) is interpreted as a text array variable reference. The two property types that support this behavior are "Text" and "ValueMenu" — choices in the Add Property dialog that are shown when editing Component properties:

[spacer]

The "ValueMenu" property is created just like a "Menu" property, so that you can enter value choices separated by commas in the Value box of the Add Property dialog. When you click on the value for this new property, a pull-down menu allows you to select from the list of values previously defined:

This property will also allow you to enter text into the edit box at the top of the pull-down menu:

 

 

Note

Components created prior to Designer 5.0 do not possess a text array variable capabilitiy. To add a text array variable to such a component, edit the component and remove the property you wish to convert to a text array variable ("xx"), then add a new "Text" property using the same name ("xx"). Next, move the new property to the desired position and then save changes. All future Component Instances that are placed will now use the new "xx" text array variable property — but instances of the component that have already been placed will not.

 




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com