56 |
U M - P S - E N - 0 0
Writing Your Own Workouts
Summary
The ProSmart software ships with built in functionality to write custom workouts. This
functionality is very primitive and low level as of right now, but will be built into a user-friendly
interface in future releases. The following section will break down how to write a full workout
piece by piece.
A beginner template is available at:
http://eng.woodway.com/ProSmart/ExampleProgram.zip
.
Intro to XML
XML is a markup language that has many uses in the programming world. It is widely used
because it is both human readable and machine readable. Common use in these programs are
XML tags. An XML tag describes a variable that the ProSmart program uses to interpret various
aspects of your workout. Each tag begins with a variable surrounded by brackets and ends with
the same variable surrounded by brackets with a slash in front of it. The following is an example
of a simple XML tag.
<Name> Tag Example </Name>
It is important to note that every tag must have a closing tag associated with it and tags can be
nested. For Example:
Correct Nesting:
<Phase>
<Name> 1.5Mi Run </Name>
</Phase>
Incorrect Nesting:
<Phase>
<Name> 1.5Mi Run </Phase>
</Name>
Note that the Phase tag must be ended in the correct order or this XML statement will fail.
All workouts on your ProSmart are built using this structure and with a little practice you will be
building workouts in no time at all.