IFIX 6 | Building a world that works

iFIX 6.1

Using the .NET Component

GE Digital

Proficy Historian and Operations Hub: Data Analysis in Context

1

Proprietary Notice

The information contained in this publication is believed to be accurate and reliable. However, General Electric Company assumes no

responsibilities for any errors, omissions or inaccuracies. Information contained in the publication is subject to change without notice.

No part of this publication may be reproduced in any form, or stored in a database or retrieval system, or transmitted or distributed in any

form by any means, electronic, mechanical photocopying, recording or otherwise, without the prior written permission of General Electric

Company. Information contained herein is subject to change without notice.

? 2020, General Electric Company. All rights reserved.

Trademark Notices

GE, the GE Monogram, and Predix are either registered trademarks or trademarks of General Electric Company.

Microsoft? is a registered trademark of Microsoft Corporation, in the United States and/or other countries.

All other trademarks are the property of their respective owners.

We want to hear from you. If you have any comments, questions, or suggestions about our documentation, send them to the following email

address:

doc@

Table of Contents

Using the .NET Component

2

Introduction

3

General Overview of Component Hosting

5

.NET Component Browser Dialog Box

5

Browse Tree

6

Add Components

6

Add Group

6

Delete Node

6

Help

6

Supported .NET Control Types

6

Inserting a .NET Component into a Picture

7

To insert a .NET component into a picture:

7

To access the properties for the .NET component:

7

Binding .NET Component Properties to an iFIX Data Source

7

To bind a .NET component to an iFIX data source:

8

Example

Using Font and Enumeration Properties for .NET Components

Font Properties for Windows Forms Components

To access font properties for Windows Forms components from the iFIX WorkSpace:

Example

Font Properties for Windows Presentation Framework Components

8

8

9

9

9

10

To access font properties for Windows Presentation Framework components from the iFIX

WorkSpace:

11

Example

Enumeration Properties for .NET Components

Scripting in VBA

Adding References in VBA

To add references in Microsoft Visual Basic:

11

11

12

13

13

Using Intellisense?

13

Accessing Component Properties and Methods Through Scripting

13

? 2020 General Electric Company. All rights reserved.

i

Example

14

Code from the Example

16

Using Event Handlers

16

Example 1

17

Code from Example 1

18

Example 2

19

Code from Example 2

19

Handling Events with Non-Converted Parameters

Example

21

Code from the Example

23

Using Properties and Methods of the iFIX Container

Advanced Features

24

25

Creating New Components

25

Creating a .NET Control

25

Example

26

Deleting Nodes on the Component Browser

27

Supporting Files for .NET Components

28

Uniqueness of .NET Control Assembly Names

28

.NET Component Directories

28

Using New Components on iFIX Systems

28

Copying Compiled Component Files to iFIX Nodes

29

Adding Components to the .NET Component Browser Dialog Box

29

To add a new component to a single system using the Component Browser dialog box:

29

To synchronize components across all systems:

30

Copying Pictures That Include .NET Components

30

Re-linking Components from Another iFIX Machine

30

To re-link a custom component from another iFIX machine:

Data Conversion Rules

ii

20

30

31

Properties and Methods

31

Events

32

Passing Complex Data Types

32

? 2020 General Electric Company. All rights reserved.

DataTable, DataView (both of System.Data), and IEnumerable (of System.Collection)

33

List, List, List, List, and List (all of System.Collections.Generic)

33

ArrayList (of System.Collections)

33

Strategies for Parameter Types That Cannot Be Converted

Error Logging

Default Logging Settings

To change the default logging level:

Sample Projects in Visual Studio

Index

? 2020 General Electric Company. All rights reserved.

34

34

35

35

35

37

iii

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download