# Nesting over a Trial Control state

Aim

To pick out the track segments corresponding to a Trial Control state. A Trial Control state is an interval defined by two events occurred during the trial (a condition met, a sub-rule started, an action taken etc.). To learn more about Trial Control states, see Trial Control state in the Analysis profile.

example Calculate the average velocity of the subject between the time that the light went on to the time that the pellet was given.

To nest over a Trial Control state

1.In the Data Profile, under Nesting click the button next to Trial Control state.

2.In the Trial Control State window, select the Trial Control elements that define the start and the stop of the interval to analyze.

For details about how you can define a Trial Control state, see Dependent Variables in Detail > Trial Control state.

3.Click OK. Proceed with step 4 in How to select track segments.

Notes

▪If the Trial Control state occurs more times in your trial, like those defined with events in a subrule, there will be multiple selection intervals in one trial. You have the following options:

▪Select Calculate result for interval if you want to restrict your selection to just one interval, for example the first one, or the third one. Next to For consecutive intervals, enter the number of the interval (1 for the first).

▪Leave Calculate result for interval not selected if you want to select all the resulting intervals. Analysis is based on all those intervals merged in one.

▪The Actors tab in the Trial Control state window is of no use, because Trial Control states occur at the trial and arena level, independent of the subjects. You cannot assign a Trial Control state to a specific subject.