background image

TOPICS

ni.com/training

0

background image

TOPICS

ni.com/training

Programmatic Control of User

Interface

A. VI Server

B. Property and Invoke Nodes

C. Implicitly and Explicitly Linked Property and Invoke

Nodes

1

background image

ni.com/training

A. VI Server

background image

ni.com/training

VI Server

LabVIEW organizes and operates on its parts (front panel, 
button, arrays, etc.) within an architecture called VI Server, which 
is object oriented.

Terminology

:

• A class defines what an object is able to do, what operations it 

can perform (methods), and what properties it has.

• An object is a member of a class.

• Properties are the attributes of an object.

• Methods perform an operation on an object.

background image

ni.com/training

VI Server—Class Hierarchy

VI

Application

Generic

GObject

Control

Boolean

Cluster

Etc.

Etc.

Generic

GObject

Control

Boolean

Pets

Dogs

Labrador

Poodle

Cats

background image

ni.com/training

B. Property and Invoke Nodes

background image

ni.com/training

Property Nodes

• They read and write the properties 

of an object. 

• They allow you to make these 

modifications programmatically.

• There are two types of Property Nodes:

– Implicitly linked

– Explicitly linked. 

• They can have multiple properties and execute from top to 

bottom.

– By default, if an error occurs on one of the terminals, the rest does not 

execute and error is output at error out terminal.

6

background image

ni.com/training

Invoke Nodes

Use the Invoke Node to perform actions, or methods, on 
referenced items (VIs, controls).

Methods can have parameters or return values. 

There are two types of Invoke Nodes:

Implicitly linked

Explicitly linked.

Method Name

Parameters

background image

DEMONSTRATION

Creating Property and Invoke Nodes

background image

ni.com/training

C. Implicitly and Explicitly 
Linked Property and Invoke
Nodes

background image

ni.com/training

Implicitly and Explicitly Linked
Invoke/Property Nodes

Explicitly Linked

(requires reference)

Implicitly Linked

(color/ label for data type/label)

Property 

Node

Invoke 

Node

10

background image

ni.com/training

VI

VI

Main VI

Main VI

SubVI

Implicitly Linked Property Node

Explicitly Linked Property Node

Control References

background image

ni.com/training

12

SubVI Front Panel

SubVI Block Diagram

Edit»

Create 

SubVI

1. Select the portion of 

the block diagram that 
will be in the subVI.

2. Select Edit»Create

SubVI; LabVIEW 
automatically creates 
the control references 
needed for the subVI.

SubVIs and Invoke/Property Nodes

background image

DEMONSTRATION

Creating References for Property 
and Invoke Nodes; Selecting a Class