Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Visualisation
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How Do I Use Point Substitution In CX-Supervisor?


Introduction
When using CX-Supervisor it is possible to change all references to a point within an object to use an alternative point. The object can even be a group of objects and contain many scripts and animations. This is especially useful if you wish to change an existing object on a page or if you are taking a ready made object from the library that contains animations. This article explains how to use the point substitution feature in CX-Supervisor.
Invoking Point Substitution

Point substitution is automatically invoked when you drag an object from the library onto a page if there are points used in the object. An example of such objects are the many NS Style objects for buttons and switches in the library, these objects use a single boolean value which can be linked into your existing application. Any objects containing animations that you add to the library will also invoke point substitution when they are used again.

All objects also have an option on the right click menu to invoke the point substitution feature. This can be used if you copy and paste an object but don't wish for it to be stored in the library.

Using Point Substitution

The point substitution dialog contains all the points used within the object or objects. If you use an array point in an animation it will contain an extra entry for the array offset and the array name. This allows you to substitute a new offset or the entire array using the same offset.

To change the point used, simply double click the value you want to change and select another point name from the point dialog that pops up. You can also single click and press the Browse button.

In the above case we can see that myarray is used with an offset of 5 in an animation. If you wish to change the array used, double click the entry without the offset and select a new array. If you wish to change the offset used, single click myarray[5] and then single click again to edit the text, you can then change the [5] to [6]. Be careful not to change the offset array for an array without offset as this will cause unexpected results! If you only wish to change the array and not the offset, ignore the line with the offset, it will change automatically.

As with arrays, if you use an expression (e.g. mypoint > 3) in an animation, this expression will also be shown in addition to the point name. Should you wish to change any of the values in the expression, you can edit these in the same way as the array offset above. If you do not wish to change any of the values in the expression, ignore the line and change only the point name where it appears on its own.

Once you have substituted all the points you want, press OK and all references will be changed.

You can check the values by editing the animations and you'll see the new values.

 




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2013-02-15
Modified 2013-02-18
Views 2649

 

You are not logged in.