---
title: "Defining the variables"
canonical: "https://help.vicon.com/space/ProCalc16/12649747/Defining%20the%20variables"
format: markdown
---
To define the variables for the Vicon ProCalc force vector tutorial, follow these steps:

> Macro (toc)

## Load the trial

<span style="color: #172B4D">Before you begin, ensure you have unzipped the</span> <span style="color: #172B4D"> </span><span style="color: #172B4D">ProCalc Tutorials data as described in </span>[<span style="color: #172B4D">About the data for this tutorial</span>](https://vicon-help.atlassian.net/wiki/spaces/ProCalc16/pages/12649549/Vicon+ProCalc+Force+Vector+Tutorial#AboutData)<span style="color: #172B4D">.</span>

For this tutorial, we will be using a static trial with a lower-body marker set where the subject stands on a force plate in a static pose. 

1. Start ProCalc
2. On the **Data Management**<span style="color: #172B4D"> </span><span style="color: #172B4D">tab, navigate to the</span><span style="color: #172B4D"> </span>**Force Vector **session<span style="color: #172B4D"> folder.</span>
3. From there, double-click **Static**to load the trial.  
The following data is displayed in the 3D workspace:  
> Macro (inline-media-image)

## Define the force vector as a line in ProCalc

**To define the force vector as a line in ProCalc:**

1. Create a new Variable Scheme.
2. Add a new variable called **ForceLine1** as shown below:
3. Observe that a line appears in the 3D workspace. This line can now be used for calculations.

Note that we could not use the force vector directly because ProCalc creates two new variables automatically when reading the force plate data from the C3D, namely a *Point*, which corresponds to the CoP, and a *Vector,* which corresponds to the direction and magnitude of the force vector (where the magnitude of the vector, in millimeters, corresponds to the force in Newtons, for example, an 800 N force is visualized as an 800 mm long force vector).

However, a vector in ProCalc does not have a fixed position in space, only a direction (this is the standard mathematical definition of a vector). A *Line*, on the other hand, is defined as having a direction and a position, and this is why we have to define the force vector as a line before we can do further calculations.

## Define the variables to which to compare the ForceLine1 variable

Next, we define the variables to which we want to compare our ForceLine1 variable.

The variables to which we want to compare the ForceLine1 variable are the two feet and the pelvis.

**To define these variables:**

1. Add a new variable called **LeftFootLine** using the function **From point A to point B**, and A=**LHEE** and B=**LTOE**.
2. Click **Copy** and **Mirror** to quickly define the equivalent line for the right side.
3. Add a new variable called **ASISLine** using the points LASI and RASI.

We have now defined all the lines we need for our further calculations, and we can proceed to the lines that we will use for our results.

## Define the lines to be used for the results

1. Add a new variable called **LeftFootLine_to_ForceLine1**, and choose the Line function: **The shortest line connecting line A and line B**.
2. Choose A =** ForceLine1** and B =** LeftFootLine**.   
The line connecting these two other lines is displayed in the 3D workspace.
3. **Copy** and **Mirror** to define the equivalent for the Right side.
4. Add a new variable called **ASISLine_to_ForceLine1**, equivalent to the above.

## Define the line lengths

Finally, we need to define the actual numbers we're interested in, which are the *lengths* of these lines:

1. Add a new variable called **LeftFootLine_to_ForceLine1_Dist**, choose function group **Distance**, and the function **Magnitude A**. Choose Type =** Line**, then choose A =** LeftFootLine_to_ForceLine1**.   
This measures the distance between the CoP and the left foot's line.
2. **Copy** and **Mirror** to get the equivalent for the right side.
3. Add a new variable called **ASISLine_to_ForceLine1_Dist** in the same way, using the **ASISLine_to_ForceLine1** variable.

The following variables are now defined:

![image](media://41d8722f-ff23-4c32-91b9-77cec730d746)

Before continuing, remember to save the scheme.