Вы находитесь на странице: 1из 15

Loops and Publishing

Lecture 13

L13.2

Overview
Loop Component
For Loop for
For Each Loop for each
For Array Loop for array
While Loop while
Do Until Loop do until

Limitations
Publishing
Searching

Introduction to Isight

L13.3

The Loop Component


Executes subflows based on
conditions

Five types of loops 5
For
For Each
For Array
While
Do Until

Introduction to Isight

L13.4

For Loop For


Executes subflow for a predetermined
number of times

OR

Execution based on two parameter values

Only Real and Integer values are allowed

Increment can be positive or negative (but NOT equal to


zero)

Subflows can be executed sequentially (default) or in parallel

Introduction to Isight

L13.5

For Each Loop For Each


Similar to the For loop
For
Iterates through the subflow for each member
of a list of parameter values.

Strings, Booleans, Real and Integer values are
allowed

Subflows can be executed sequentially
(default) or in parallel

Introduction to Isight

L13.6

For Array Loop For Array


Similar to the For Each loop
For each
Iterates through the elements of an
array (or multiple arrays) and sets
(or reads) each element value with
a subflow parameter.

Strings, Booleans, Real and Integer


values are allowed

Subflows can be executed


sequentially (default) or in parallel

Introduction to Isight

L13.7

While Loop while


Executes subflow as long as a
specified condition is met

Checks condition first, then


executes subflow

Complex conditions are supported


using logical OR, AND

Max number of iterations can be
specified (Default is 10)
10

Introduction to Isight

L13.8

Do Until Loop
Similar to the While Do loop
while
Executes the subflow until a condition is
satisfied

Condition is checked at the end of subflow

Subflow will be executed at least once

Complex conditions are supported using
logical OR, AND

Max number of iterations can be specified
(Default is 10)

10

Introduction to Isight

L13.9

Loop Limitations
Parameters used in the conditions (While and Do Until) must be of
mode Input/Output if their value will change during loop iterations.

Check loop parameter mapping between loop and its subflow

Iteration parameter in For, For Each and For Array loops
for ,for each, for array
Condition parameters in While and Do Until loops
while ,do until

Introduction to Isight

L13.10

Publishing
You can publish
A model
A component (sub-model)
Published models have/
Base name for example, MyDesign

Extended name which is the sequence of folders (in the library) leading to the model,
separated by periods. For example, if MyDesign is to be located in MyModels/NewCar, then
the extended name is MyModels.NewCar.MyDesign

/ ..
Attributes keywords for searching, optional

Description optional

Introduction to Isight

L13.11

Model Assembly: Publishing

Select File Publish to publish the entire model



Select a component and right-click Publish to publish it


Provide a full name for where to store it in the
Library (. indicates a directory separator)
.

Provide attributes for easy search


capability

Introduction to Isight

L13.12

Searching the Library

Search

Containing

Exact match

Categories

Models

Components

Plug-ins

Data Types

Visuals

Attributes

Name

Description

Keywords

Author

Click the View Details button from Search tab of the Library menu to see version details
for selected model/component

Introduction to Isight

L13.13

Searching the Library


Version Details
Name
Author
Type
Model
Component

Version
Publish Date
Attributes
Description

Introduction to Isight

Retrieving Models from the Library

Opening a published model

File > Open From Library

Find Model and expand to find correct


version, if needed

Click Open

Or

Click Library Toolbar button

Drag from Library into empty Gateway

Introduction to Isight

L13.14

L13.15

Using Library Items from the Palette

Put frequently used components on your palette



Put frequently used published models on your palette

Models may be inserted by either reference or copy

Copy

Introduction to Isight

Reference

Вам также может понравиться