Tutorial: draw vector graphics, create path animations, and animate control properties using the Dynamics panel.
Home → Tutorials → User Interactions Tutorial → Displays Module Tutorial → Apply Dynamics to Controls Tutorials
Related: Concept | How-to Guide | Reference
This Tutorial Teaches you to:
- Draw vector graphics
- Create path animations
- Animate control properties
- Build interactive animations
Prerequisites
1. Vector Drawing Basics
- Open Displays → Draw.
- Use the drawing tools in the top toolbar.
Basic Shapes:
- Rectangle
- Ellipse
- Polygon
- Polyline
- Line
- Spline
Combine Shapes (in the top horizontal toolbar):
- Select multiple shapes.
- Use union, subtract, or intersect.
- See the combined result.
2. Create Animated Bargraph
- Draw a rectangle.
- Double click it and go to Dynamics.
- Choose Bargraph.
- In Expression, add the Tank Level tag, for example
@Tag.TankFarm/Tank1/Level. - Change the Bar Color to Blue.
3. Rotation Animation
- Draw a blower from the Symbol Library.
- Double click it and go to Dynamics.
- Add a Rotate dynamic:
- Expression:
@Client.UI.SimulationAnalog - Set the result range so the blower rotates at the desired RPM.
- Expression:
4. Color Animations
- Draw a square.
- Double click it and go to Dynamics.
- Add a FillColor dynamic:
- Change Color: Using Limits.
- Expression:
@Tag.TankFarm/Tank1/Level - Set color and value pairs, for example:
- Value: 0; Color: Green
- Value: 25; Color: Blue
- Value: 50; Color: Red
5. Visibility Animations
- Draw a square.
- Double click it and go to Dynamics.
- Add a Visibility dynamic.
- In Visible set:
- 1 = Visible
- 0 = Not Visible
- You can set an Expression to evaluate visibility, for example:
@Tag.TankFarm/Tank1/Level > 25
In this section...