Pular para o conteúdo principal

Specifications



IndySoft Main Screen - Specifications Tab

Specifications relate to any piece of information that you need to store at the equipment level that could be accessed from within an Uncertainty Budget's VBScript (by using the LookupAttributeGage or LookupAttributeMaster functions).

Toolbar:



1. Add Root Specification

1. Formula

2. Lookup

3. Set

4. Table

2. Edit Specification

3. Delete Specification

4. Expand All

5. Collapse All

6. Launch the Uncertainty Module

7. Move the selected item left/right/up/down

Press the 'Add' button above the grid to add new Specifications.



To edit a previous item, press the 'Edit' button . To delete an Uncertainty Attribute/ specification, highlight the appropriate Attribute in the grid and press the 'Delete' button . The deletion must be confirmed before completing.

Launch Specification Manager

Note: 'Specifications' and 'uncertainty attributes' are the same reference.

Adding Specifications
There are 4 Specification Types available: LOOKUP, TABLE, SET, and FORMULA. New Uncertainty Attributes default to a 'LOOKUP' Attribute Type.

  1. LOOKUP Attribute Types are numeric values (Attribute Lookup) associated with an Attribute Name. Attributes of the LOOKUP type can be referenced within VBScript by using the LookupAttributeGage or LookupAttributeMaster functions. For LOOKUP Attribute Types, you can specify nil for the 2nd parameter of these functions (since you do not need a table lookup value).



Add/Edit Specification - LOOKUP

2. TABLE Attribute Types store multiple Values per Attribute. When referencing these Attributes from VBScript, you specify both the Attribute Name and lookup value (see LookupAttributeGage and LookupAttributeMaster topics in the IndySoft Uncertainty Module help for more details). First, you must create a table with a unique table name (shown below):



Add/Edit Specification - TABLE

Once you have created a table, you can add table items. Users must specify the 'From' and 'Through' bounds for each Value when setting up TABLE Attribute items. 'From' or 'Through' bounds must also be specified as 'greater than,' 'greater than or equal to,' 'less than,' or 'less than or equal to,' as appropriate. When a Value is requested from this table by the LookupAttributeGage or LookupAttributeMaster functions, the lookup value is compared against the 'From' and 'Through' values in this table to find the appropriate Value to return. Optional 'Parameter' names, 'Unit of Measure,' and 'Resolution' can also be specified. Changing the 'Resolution' per parameter will modify the resolution of the 'From,' 'Through,' and 'Value' fields in the table.



Add/Edit Specification - TABLE ITEM

  1. The SET option allows you to store a set of values per Attribute. You have the ability to specify the # of items, start point, end point, and number to increment by. See the dialog below for more information:



Add/Edit Specification - SET

4. Finally, there is a FORMULA Attribute Type for advanced attributes. This type provides a VBScript window (just as in the Uncertainty Module's Contributing Items and Correlation Formula) that allows for complex calculations that optionally reference live event data. This VBScript can reference live data fields by calling VBScript functions that return values. Examples of all potential VBScript functions specific to the IndySoft Uncertainty Module are listed to the right of the script editor. This VBScript can be as simple or complex as the attribute requires - the only requirement is that the last line of VBScript code MUST call the SetResult function. This function returns the Attribute value that will be available to IndySoft.



Add/Edit Specification - FORMULA

For more notes on the wealth of functions/procedures native to VBScript, see the VBScript Help topic in the IndySoft Uncertainty Module help. For more notes on the functions specific to the IndySoft Uncertainty (that return live event data, etc.), see the following topics in the Uncertainty Module help:

SetResult

LookupStudy

LookupAttributeGage

LookupAttributeMaster

ContribItemResult

SetCommonVarNumeric

ReturnCommonVarNumeric

LookupNumericField

LookupStringField

To test the VBScript you have edited, press the 'Test Script' button to the right of the Script Editor. When scripts are executed within the IndySoft event system, the live field data is automatically entered into the VBScript at the appropriate times. However, live event data is unavailable when debugging the script within this dialog. For this reason, if example data is required by the VBScript when performing a 'Test Script' operation, the user will be prompted to type the appropriate field data, select a proper example gage, etc. This tool is provided so users can save time when creating VBScript - so they do not have to perform an actual IndySoft event to test the result. |