Bertec Treadmill Gait Cycle Events


Technical information

Download Bertec Treadmill Gait Cycle Events

Bertec Treadmill Gait Cycle Events

Script Name: BertecTreadmillForcePlateGaitCycleEvents

Language: Matlab, Python 3.9



This file is supplied to illustrate the normal operation of the Nexus to Python/Matlab interface.

Oxford Metrics and Vicon Motion Systems accept no responsibility for its

correct operation


This code can be used to define the gait cycle events from a Bertec force

plate by using the Fz channels of both force plates only.


There must be a subject in the session folder, and the left and

right Bertec treadmill plates must be uniquely named. The names must

start with a letter and not contain spaces.


In order for the code to work as intended, the subject must be walking or running on both plates


The user will be prompted with five inputs (in Matlab) or dropdown menu’s in Python:

– Subject name

– Left treadmill plate name

– Right treadmill plate name

– Whether or not to clear the existing gait cycle events in Nexus

– The force threshold


The events will be written back into Nexus. For better results, the data

should be filtered first. Due to the noisy nature of the Fz data at the

foot offs, the foot off events may be a few frames off.


It is recommended to check the gait cycle events written to Nexus



Matlab: None (originally created in Matlab 2018a)

Python modules: numpy, tkSimpleDialog, tkinter, sys


Run in Vicon Nexus: Yes

Example Provided: Yes, (Processed in Nexus 2.12.1)

Author: Nev Pires – Vicon Motion Systems, Inc.


Vicon are here to support you on your Motion Capture journey. We’re happy to provide more information, answer questions and help you find the solution you need. Get in touch with our experts today.