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.

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



output property of the smart property similar to Figure 3.
which simplifies the binding of smart properties to properties of the ...12. The smart symbol wizard pops up. Check the “Expose data sources as...
Before you start with creating Smart Symbol please...GraphWorX64 - Smart Symbols Property Binding ...CommandData” and select “Smart Binding Editor”...
GraphWorX64’s development environment offers a ... which simplifies the binding of smart properties ...Figure 7 - Smart Properties of Symbol Copyright ...
GraphWorX64 - Smart Sy... GraphWorX64 - Tips and... GraphWorX64 - ...Note that you can always open the password protected display in runtime ...
GraphWorX64 - Smart Sy... GraphWorX64 - Tips and... GraphWorX64 - ...Note that you can always open the password protected display in runtime ...
热门文档