GOOP by GOLV V5.5

Nr Name

1

Programmierung Verwendung von Klassen.vi

2

The 4 pillars of OOP

3

Class im Project

4

Constructor: Create.vi

5

Methode: Read.vi

6

Methode: Wirte.vi

7

Destructor: Destroy.vi

8

#GOOP by GOLV V5.5

9

GOOP

10

Description

11

Create Class

12

Create Method in Class

13

Properties

14

Create Folder

15

Create Probe

16

Create Probes

17

Help Probes

18

Create Menu

19

Delete Inheritance

20

Delete Item

21

Create Inheritance

22

Select Parent Class

23

Select Child Class

24

Build Inheritance

25

Create Association

26

Class-Reference

27

Class-Attribute

28

UML Class Diagram

29

UML Collaboration Diagram

30

Update Service by Gang of LabVIEW

31

Register

Programmierung Verwendung von Klassen.vi

Object-oriented software development is not magic, but a slightly different way of thinking, traditional concepts and innovative ideas are used in combination with the. LabVIEW remains LabVIEW.

OOP concepts:
Classes:
- A class is a kind of template for the description of similar objects.
- A class is a generic term for things (objects) that have a common structure and a common behavior.
- A class is a blueprint of an object.
- take classes attributes and methods together into one unit.

Objects:
- An object is an abstraction of a real or imaginary object. Each object is described by its properties. An object is an instance of a class.
-An object is an existing runtime of a program instance of a class that is set for the space available.

Attributes:
- An attribute is a data element which is equally present in each object of a class. Other names: variables
- Attributes describe the structure of the objects (information / data contained).

Methods:
- A method implements an operation. Other name: function
- methods describe the behavior of objects of a class.

Constructors and Destructor:
-Create and destroy an object of a class done by special methods, the constructor or destructor . They provide the needed space available and release it again.

Singleton:
-Also called unique. It is a design pattern and is part of the generation pattern. It prevents a class of more than one object may be generated. This unique piece moreover usually is globally available.

The 4 pillars of OOP

Click on me

The 4 pillars of OOP:
Abstraction:
Representation of the essence in appropriate data types, decomposing the overall system aspects. neglected Simplified description or specification of a system that focuses on some of the details or properties of the system, and others for it.
Note: We focus on what we are interested Effective.

Encapsulation
All data and methods of an object are determined for each class. Data and methods are outside of classes not defined , they can be used externally only. As a result, data and associated program code of an object class are encapsulated. As data encapsulation refers to hiding implementation details. Direct access to the attributes can only be done by a method. An object determines how the data (attributes) are processed.
Note: We think in black boxes.

Inheritance / hierarchy
Inheritance means simplified that a derived class (Child) the methods and attributes of the base class (parent ) also has, thus "inherits". Thus, the derived class methods and attributes of the parent use Klass.
-A derived class inherits all the attributes and methods of its parent class.
-The parent class methods can be overridden in the derived class to customize its functionality (polymorphism).
-It only simple inheritance are possible.
Note: We are looking for similarities.

Polymorphism
Different objects can react differently to the same message. When inherited classes a method of parent class can be overridden by the child class. The method in the parent class and the method that needs child class have the same name and the same inputs and outputs. - methods with the same name can be implemented so that they trigger different actions in different succession classes. This property of the diversity of object classes is denoted by the (Greek) expression polymorphism .
Note: We will send messages bother us but not about how the beneficiaries concerned edit the messages.

Class im Project

Click on me

This image show the class in the project explorer.

Nr CaptionDescription

1

ThisClass

This is a class by gang of labview.

2

Attribute

This are the attribute of the class. It has two attribute typ:
- Attribute.ctl value for earch objet different.
- GlobalAttribute.ctl value for eache object the same.

3

_Utility

service routine for the class.

4

Create

Constructor of the class.

5

Destroy

Destrotor of the class.

Constructor: Create.vi

Click on me

This VI show the constructor "Create.vi" of the class. With this vi will you create a object of this class.

Nr CaptionDescription

1

CreateInstance.vi

This service routine will create a class.

2

Singelton?

If this is true the class will be Singleton. It's create one one object of this class.

3

Code

You can write the code hir.

4

Exist_This_Instance

This service routine will relais the use of the class.

5

Exist_This_Instance

Info if the class exist.

Methode: Read.vi

Click on me

This VI will read the attributes of the object.

Nr CaptionDescription

1

GetEntity.vi

This will get the attributes of the object.

2

Code

You can write the code hir.

3

Exist_This_Instance

This service routine will relais the use of the class.

Methode: Wirte.vi

Click on me

This VI will read and write the attributes of the object.

Nr CaptionDescription

1

Code

You can write the code hir.

2

GetEntity.vi

This will get the attributes of the object.

3

SetEntity.vi

This will set the attributes of the object.

Destructor: Destroy.vi

Click on me

This is the destructor of the class. It will delete the current object.

Nr CaptionDescription

1

Code

You can write the code hir.

2

DestroyInstance.vi

This will delete the object.

#GOOP by GOLV V5.5

Menu: #GOOP by GOLV V5.5


This Tool is to create/edit #GOOP Object by reference from Gang of LabVIEW.

You can start this tool over the project explore under: Tools -->#GOOP by Gang of Labview

GOOP

Click on me

This are the main function the #GOOP tool, to create class by reference.

Nr CaptionDescription

1

Project Name

This shows the current project explorer name.

2

Create Class

Opens a dialog to create a class in the project explorer.

3

Create Method in Class

Opens a dialog to create a new method in the seleced class.

4

Create Inheritance

Opens a dialog to create an inheritance (Hierarchy).

5

Delete Inheritance

Opens a dialog to delete the inheritance (Hierarchy).

6

Create Association

Opens a dialog to create a relationships between tow classes, like Association, Aggregation or Composition.

The relationship ssociation, Aggregation or Composition has to be made in the code.

7

Create Probe

Opens a dialog to create probes of the class to debug like you know under the menu "Customer Probe" in block diagram.

8

Properties

This button opens a dialog to change the properties of a VI or class like icon scope or overwrite properties.

This is also needed if you had renamed the class in the project explorer to rename the service routine for the class.. Change only the icon and the class is ready to use.

9

Create Menu

Opens a dialog to create a user.lib menu of the project classes to use in the block diagram.

10

Create Folder

Opens a dialog to create an new Folder in a class.

11

Delete Item

Opens a dialog to delete a VI or a class in the project explorer.

12

UML Class Diagram

This button opens a dialog to show the UML Class Diagram.

13

UML Collaboration Diagram

This button opens a dialog to show the UML Collaboration Diagram.

14

Exit

This button stops the dialog.

Description

Click on me

This is the description text template to insert into a new method of a class.

Nr CaptionDescription

1

Description Template

This is the description template for new class and method.

2

Save

Save the description template

Create Class

Click on me

This dialog creates a class in the open project explorer.

Nr CaptionDescription

1

Class Name

This is the name of the class

2

Type

This is the type of the class like, class, interface, Abstrakte

3

Icon Text

This is to paint the icon of a class

4

Class Icon

This is the Icon of the class

5

Class Description

This is the description of the class

6

Exit

This button stops the dialog

7

Create

This button create the class

Create Method in Class

Click on me

This VI creates methods in the selected class (project explorer).

Nr CaptionDescription

1

Class Name

This is the selected class name from the project explorer.

2

VI Name

This is the name of the VI (Methode)

3

Type

Change this type

4

Scope

This is the scope of the methode.

5

Override?

A child-class-VI must override this VI. This is used in interface or Abstract classes.

6

Icon Text

This is the icon text of the methode.

7

Icon

This is the Icon of the VI

8

Write Description

If this is true the description gets written into the VI.

9

VI Description

This is the description of the VI

10

Open VI

Open the VI after create

11

Exit

This button stops the dialog.

12

Create

This button create the method

Properties

Click on me

This dialog is to changes properties of a class or VI.
If you change the icon of a class it's reaname all VI unter the folder _Utility.

If you want to rename a class, please rename the class in the Projekt explorer (F2) and change the Icon, so that all help VI unter the folder _Utility gets renamed.

Nr CaptionDescription

1

Name

This is the name of the VI or class.

2

Icon Titel

This is the Titel of the icon.

3

Icon Body

This is the body of the icon.

4

Icon

This is the icon of the class or VI.

5

Scope

This is the scope of class methode (VI)

6

Override?

A child class methode (VI) must override the methode (VI).

7

Write Description

Write the description into the VI

8

Class or VI Description

This is the description of the class or the vi.

9

Exit

This button stops the dialog

10

Write

This button write to properties into the class or vi.

Create Folder

Click on me

This Dialog create a new folder in the selected class.

Nr CaptionDescription

1

Create

This will create a new folder in the class and on the disc.

2

Folder Name:

This is the new folder name.

3

Exit

This button stops the dialog

4

Class Name

This is the selected class in the projet explorer to create the new folder.

Create Probe

This dialog is to create probes from all classes of this projects.

Create Probes

Click on me

Create a custom probes of a classes to debug your project.

Nr CaptionDescription

1

Text

Warning Text

2

Create

This will create probes from all class.

3

Cancel

This button stops the dialog.

4

Delete

This Delete all probes.

Help Probes

Click on me

This Imge show how to use the cusom Probe in the blockdiagram.

Delete Inheritance

Click on me

This dialog is to delete a Inheritance between to class. Select the child class in the project explorer and check the parent class. Press the button delete to clear the inhertance or Exit to close this dialog.

Nr CaptionDescription

1

Parent Class:

Check if this it the parent class to delete the interitance.

2

Child Class

Select the child class in the project explorer

3

Delete

This button deletes the selected inheritance

4

Exit

This button stops the dialog.

Delete Item

Click on me

This is to delete a Items like a vi, class or ctl in the projekt explorer and on the disc.

Nr CaptionDescription

1

Delete Item

Select a VI or class to delete in the project explorer.

2

Delete

This button deletes the selected item

3

Exit

This button stops the dialog

Create Inheritance

Click on me

This dialog is for creating an inheritance (Hierarchy). Select the class in the project explorer

Nr CaptionDescription

1

Gang of Labview

This dialog is for creating an inheritance (Hierarchy).

2

Exit

This button stops the dialog.

Select Parent Class

Click on me

Select the parent class in the project explorer

Nr CaptionDescription

1

Parent Class

Select the parent class in the project explorer

2

NextParent

Go to select the child class.

Select Child Class

Click on me

Select the child class in the project explorer

Nr CaptionDescription

1

Child Class

Select the child class in the project explorer

2

Next

Go to build the Inheritance between the parent and child class.

Build Inheritance

Click on me

Check the child and parent class and press create or exit.

Nr CaptionDescription

1

Parent Class

This is the name of the parent class.

2

Child Class

This is the name of the child class.

3

Create

This button create the inheritance

Create Association

Click on me

This VI is a dialog is for creating an association between tow classes. The selected class reference gets into the selected Class Attribute.

Nr CaptionDescription

1

Gang of Labview

This dialog is for creating an association between tow classes.

2

Exit

This button stops the dialog.

Class-Reference

Click on me

Hir get the class reference selected for input into the attribute of a class.

Nr CaptionDescription

1

Class

This class reference gets insert into the next Class attribute.

2

Number

Number of first-class controls in the second-class attributes (Multiplicity).

3

N

N of main-class controls in the second-class attributes (Multiplicity).

4

NextClass1

Next, go to the next class.

Class-Attribute

Click on me

This is the class with the Main-Class-reference gets insert into the attribute.

Nr CaptionDescription

1

Class

Select the class in the project explorer.

2

Create

Create the association.

3

Typ

Select the attribute to input the class controls.

UML Class Diagram

Click on me
Menu: UML Class Diagram


Nr CaptionDescription

1

Gang of Labview UML

Caption Nr 1 Menu: Gang of Labview UML


UML Collaboration Diagram

Click on me
Menu: UML Collaboration Diagram


Nr CaptionDescription

1

Gang of Labview UML

Caption Nr 1 Menu: Gang of Labview UML


Update Service by Gang of LabVIEW

Click on me

This is the Update Servise by Gang of LabVIEW. If an new Version is online this dialog opens. You can download the new version with only one click.

Nr CaptionDescription

1

Dialog Titel

This is the Titel of the Update Service dialog.

2

Name of Version

This is the name of the new version you can download.

3

Install

If you press this button, the new version of the tool get installed.

4

No yet

This button close the dialog without download the new version.

Register

Click on me

To register this tool please input the License Nr and the Key and press the button Register. If you don't want to register exit this dialog with the close button.

Nr CaptionDescription

1

License Nr

Input the key to register the tool.

2

Key

Input the key to register the tool.

3

PC Name

This is your computer name to get a tool license

4

License OK

This shows if the imput license Nr and Key fine.

5

Register

Press this button to register the tool.

6

License

Dialog with the Licence text.

7

Close

Close the register dialog.