whitepeak.org

i-Magic Catalyst (.pgm) program file format

Introduction

As for the Fortius files, whenever fields have units associated with them, such as weight, distance etc., the Tacx software stores the SI unit any only converts to the Imperial system for display purposes.

Single Byte characters (ASCII) are used throughout.

An .pgm file contains the following data blocks.

  1. General information.
  2. Course data.
  3. Course information.

 

General Information Block

 

Field Offset Size .NET type Comments
No. of program records 0 2 UInt16
Total 2

Course Data Block

 

Field Offset Size .NET type Comments
Distance 0 8 Double km
PulseSlopeWatt 4 8 Double Pulse or slope or power
Duration 12 4 UInt32 seconds
Total 20

Course Information Block

 

Field Offset Size .NET type Comments
Course name length 0 1 Byte  
Course name 1 Course name length Char[]  
WattSlopePulse 1 + Course name length 4 UInt32
TimeDist 5 + Course name length 4 UInt32
Total 9 + Course name length

The values of the WattSlopePulse and TimeDist fields indicate the type of catalyst program in use, based on the following table.

  0 1 2
WattSlopePulse Watt Slope Pulse
TimeDist Time Distance  

For example, if WattSlopePulse was 1 and TimeDist was 0, the catalyst program would be a Slope - Time based one.