文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 互联网 > GraphWorX64 - Smart Symbol Binding with Real Time Data
侵权投诉

GraphWorX64 - Smart Symbol Binding with Real Time Data

Description: A quick example of using advanced properties of smart binding and smart symbols.

OS Requirement: Windows Server 2003 x64/Vista x64/ Server 2008 x64/Windows 7 x64/ Server 2008 R2 x64

General Requirement: GENESIS64 v10.7 or later and familiarity with smart binding in GraphWorX64.

July 2012

In configuration mode, the runtime value of these smart properties is null. In runtime mode, the runtime value will automatically be converted to the data type of the target (bound) property, if possible (this is usually possible if the value can be converted to and from a string).

Introduction:

Smart Symbols are an enhanced version of object groups. They greatly simplify the configuration and save engineering time by allowing a configuration of properties of inner objects without a need to drill-into the symbol.

This document focuses on a couple of new smart properties which provides engineers with an option to use resolved data source values in their binding logic. It is very convenient to be able to use OPC values as parameters inside other data sources instead of using scripts in displays. With this feature data sources can also feed properties of 3rd party WPF controls directly without the need for retrieving the values with a script.

For further information on Smart Symbols and the Smart Symbol Property Binding Editor see the GraphWorX64 application notes on Smart symbols or consult the help files.

Data Source Definition based on other Data Source Output Value

This example will show you how to use output of one OPC data source as part of another data source definition.

1. Open a new GraphWorX64 display by going to Start

All Programs ICONICS GENESIS64 GraphWorX64 GraphWorX64.

2. Create two process points representing local simulation

variables such as “localsim:sine” and “localsim:ramp”. 3. Create a third process point which should be Data Entry.

For data source enter a String local user variable with no initial value, similar to the variable in Figure 1.

Runtime Value Properties

In version 10.7 there are two new smart property types:

StringDataSourceAndRuntimeValue

StringDataSourceWithTokensAndRuntimeValue

These new types have the same characteristics as these preexisting types:

StringDataSource

StringDataSourceWithTokens

However, these new types also expose the runtime value of the data source as a bindable property instead of just the data source name.

Because the data type of the runtime value is not known until runtime, in the Smart Binding Editor dialog you will need to uncheck the "Show Compatible Properties Only" checkbox in order to see the properties for the runtime values.

For example, if you define a smart property of type "StringDataSourceAndRuntimeValue" named "MyProperty", in the binding editor you will see two properties: one named "(MyProperty)" which is the data source name, and another named "(MyPropertyRuntimeValue)" which is the runtime value of the data source.

GraphWorX64 - Smart Symbol Binding with Real Time Data

Figure 1 - Creating Empty Local Variable

4. Duplicate this process point.

5. Select the duplicated process point, right-click on it and

select Group, then right-click on it again and select Convert to Smart Symbol.

NOTE: If you don’t know how to use or create Smart Symbols see application note entitled GraphWorX64 - Smart Symbols.

6. In Automatic Smart Binding Options select to Expose data

sources as Smart Properties

7. Give it a name of your choice and change the property type

to StringDataSourceAndRuntimeValue

8. If you check the properties of the smart symbol you should

see one smart property which should contain the original data source

Figure 2 - Smart Property

9. Expanding the Smart Symbol in object Explorer, select the

label and look at the Dynamics panel. You should see the

GraphWorX64 - Smart Symbol Binding with Real Time Data

GraphWorX64 - Smart Symbol Binding with Real Time Data

GraphWorX64 - Smart Symbol Binding with Real Time Data

output property of the smart property similar to Figure 3.

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email