Back

Topic

[KB278]How to correctly configure the Single Axis Position animation to create a slider control

Tags: Animations

14 years ago
By RM
Options
Print
Applies to:

PcVue all versions.


Summary:

How to correctly configure the Single Axis Position animation to create a slider control


Details:

The Single Axis Positioning animation can be used to create a slider control. But if configured incorrectly, a slider can cause problems due to the generation of an avalanche of values.

Reminder: The options to create a slider are shown on this screenshot:

Slider1

The problem mainly appears when your variable has a source that is not internal. What happens? Each time the slider moves by 1 pixel PcVue generates a new value. So if the User moves the slider more than just a few pixels many values are generated, all of which must be sent to the equipment, and the communication network may be overloaded!

A similar problem can also happen if the variable configured as internal and you are using Client/Server architecture. This will create an avalanche of messages between PcVue Server and Client.

Solution:

Unselect the option Direct Send in the Single Axis Positioning animation and keep Cursor Behavior only. Now the User can move the slider but the new value will be sent when the User releases the slider. But now there is a new problem. How does the user know the value he will send? You can see the value in the Status Bar (bottom of workspace) in the left corner. Here it is the screenshot:

Slider2

That’s OK for someone with design rights but usually the Status Bar is not available to a normal User.

Now, this is the trick (finally!):

Add the character “@” in the comment field of the Single Axis Positioning animation like this screenshot:

Slider3

And observe the result:

Slider4

No need to display the Status Bar anymore.

 


Created on: 17 Dec 2010 Last update: 13 May 2024