Value Fields

 

Value fields allow the user to import or export numerical or signal input to and from the component.  Value fields include the following numerical sub-types:

Adding Value Fields

To add a new value field to a category page, select the category in the Categories tree and then select Real, Integer or Logical within the Add Parameter Field drop list button in the tool bar:

 

 

A new value field will appear:

 

Changing Value Field Properties

Value field properties can be adjusted directly on the category page.  Left-click on the [+] box to expand the value field tree node.

 

 

The properties available are described as follows:   

Value Field Data Types

Value fields can be subdivided into two types: Real and Integer.  These data types are quite familiar in programming languages and can be readily defined.  In PSCAD, Real, Integer and Logical type value fields can be further categorized into three sub-types:  Literal, Constant and Variable.

 

PSCAD versions prior to X4 allowed only type Literal and Variable value fields.  Seasoned users will remember the use of the Allow Signal Names option in the Value Field dialog:  By default, all value fields were Literal, but could be made Variable by selecting this option.  

 

As a direct by-product of the multiple instance module (MIM) feature, a third input field sub-type was created and dubbed a Constant.  A Constant type input field is a hybrid of sorts in that it possesses key properties of the other two data types.  For example, a Constant type field cannot be modified during runtime like a Variable, but can accept the name of a previously defined signal, or an actual number (Literal).  

 

A brief definition and example is given below for each data type:

See Multiple Instance Modules for more details on using Constant type value fields.