ANY-maze Help > The ANY-maze reference > The Data page > Copying and saving data > Using 'Variable names' to title columns when saving data to a file

Using 'Variable names' to title columns when saving data to a file

Introduction

One of the main reasons for saving the ANY-maze Data page spreadsheet to a file is so it can be read into statistics programs such as SPSS, Systat or Statistica.

As you'd expect, these programs view the columns of the spreadsheet as 'variables', and therefore the column titles are taken to be the names of those variables.  However, most stats programs impose limits on the length and contents of variable names, and the standard column titles used in ANY-maze don't tend to satisfy them. For example, if you read a SYLK file into SPSS and the file uses the standard column titles, then many of the variable names will be truncated and others will just be set to values like 'V1' or 'V2'.

To overcome this problem, ANY-maze can save files in which the columns are titled with special 'variable names' rather than the standard titles shown on the spreadsheet. The variable names used have been designed to be compatible with SPSS, but since the SPSS rules are so severe, they should work fine with any stats program.

 When ANY-maze uses variable names 
 SPSS variable name rules 
 Variable names in ANY-maze 
 Variable name abbreviations used by ANY-maze 
 Full list of ANY-maze measure variable names 
 Full list of Test data variable names  

  

When ANY-maze uses variable names

ANY-maze may use variable names when saving data, depending on the format you choose to save as:

 When you save data in SYLK format, ANY-maze will ask you if you'd like to use the existing column titles, or whether to replace them with column titles converted to variable name, or long or short variable names. 
 When saving in dBase format, short variable names will be used as 'field' names.  
 ANY-maze does not include the ability to use variable names in CSV or TXT files - these always use the standard column titles.  

SPSS variable name rules

ANY-maze variable names adhere to the SPSS variable naming rules. Quoting from the SPSS help:

The following rules apply to variable names:

 Each variable name must be unique. 
 The maximum variable name length is 64 characters (version 12 and higher) or 8 characters ((pre version 12). 
 The first character must be a letter or the character @. 
 Middle characters of the variable name can be any combination of letters, numbers, @, #, $, comma (,), period (.) or underscore (_). 
 The last character of a variable name cannot be a period (.) or underscore (_). 
 Spaces are not allowed in variable names.  

The standard column titles used by ANY-maze usually violate at least the 'no spaces' rules.

  

Variable names in ANY-maze

ANY-maze includes three types of variable names - column titles converted into variable names, long variable name and short variable names.

Column titles converted into variable names

ANY-maze can simply convert the column titles shown on the Data page, into variable names which it does by:

 Replacing all spaces with underscores 
 Replacing all 'illegal' characters (such as : / - etc.) with a dot 
 Adding an @ character to the start of any names which don't begin with a letter 
 Chopping off names that are longer than 64 characters 

This mechanism usually generates easily understood variable names and it's the option we recommend when you're saving data you plan to analyse in SPSS.

Note that it is possible for this system to create variable names which are not unique. This is because ANY-maze doesn't force you to use unique names for protocol elements such as zones, points, sequences, etc. Thus you could have two different zones in ANY-maze, both of which are called "Centre". This would mean that the Data page could have two columns both titled "Centre : time" (reporting the time in the zone) and you'd therefore end up with two variable names called "Centre_._time". Clearly you can avoid this problem by ensuring that you use unique names for your zones, points, sequences, etc.

Another potential issue is that a name might be truncated by ANY-maze (to keep it within the 64 character limit) and that might make it non unique and/or make it unintelligible. The best way to avoid this issue is to keep the names of zones, points, sequences, etc. reasonably short.

Long and short variable names

Long and short variable names use an encoded name rather than the column title. For example, the column which shows the time the animal spent in the 'Centre' zone will have a title of 'Centre : time', but its variable name would be 'Z1_T' ('Z' for zone, '1' for the first zone defined in the protocol and 'T' for time). As you can see, this system generates short names which are guaranteed to be unique, but it can sometimes be hard to interpret what the variable names mean (a full list of variable names is given below).

Although ANY-maze has 'long' and 'short' variable names they are, in fact, the same, except when repeated measures are shown in different columns (see Showing repeated measures in columns). In this case, column titles may need to show not only the name of a measure, such as 'Distance travelled', but also a Stage number, a trial number and the start and end times of a test segment - clearly, packing all this information into 8 characters is impossible.

Long variable names

Long variable names adhere to the SPSS naming rules for version 12 and above of SPSS - i.e. they are never more than 64 characters long. The names are formatted as something like '1.2_0.30_DISTANCE', where the '_' character separates sections of the name. So in this example, the first section '1.2' means stage 1, trial 2; the second section 0.30 means the period of the trial from time 0 to time 30 seconds; and 'DISTANCE' is the standard variable name (see below) for the measure shown in the column.

Short variable names

Short variable names are the 'standard' variable names in ANY-maze, and are described below. The problem with short names is that they are limited to just 8 characters, and so they can't include details of stage/trials or time segments. For this reason, if your data table includes different columns for repeated measures, and you save data using short variable names, the columns will simply be named VAR00001, VAR00002, etc. Note that this ONLY occurs when repeated measures are shown in different columns - in all other cases, short variable names are meaningful.

Variable name abbreviations used by ANY-maze

The most demanding aspect of the variable name rules is the 8-character limit which they impose. To help create variable names which meet these criteria, ANY-maze employs some standardised abbreviations:

 ZxZone x, where x is the zone's index. For example, the first zone in the protocol is Z1, the second one Z2 and so on. If you have more than 9 zones then they are referred to as ZA (the tenth zone), ZB (the eleventh) and so on. All zones above ZZ (the 34th zone) are called Z# (i.e. you can't differentiate them).
 PxPoint x, where x is the point's index. For example, the first point in the protocol is P1, the second one P2 and so on. If you have more than 9 points then they are referred to as PA (the tenth zone), PB (the eleventh) and so on. All points above PZ (the 34th point) are called P# (i.e. you can't differentiate them).
 SQxSequence x, where x is the sequence's index. For example, the first sequence in the protocol is SQ1, the second is SQ2 and so on. If you have more than 9 sequences then they are referred to as SQA (the tenth sequence), SQB (the eleventh) and so on.
 KxKey x, where x is the key's index. For example, the first key in the protocol is K1, the second is K2 and so on. If you have more than 9 keys then they are referred to as KA (the tenth key), KB (the eleventh) and so on.
 IxOn/off input x, where x is the input's index. For example, the first on/off input in the protocol is I1, the second is I2 and so on. If you have more than 9 on/off inputs then they are referred to as IA (the tenth input), IB (the eleventh) and so on.
 SGxSignal x, where x is the signal's index. For example, the first signal in the protocol is SG1, the second is SG2 and so on. If you have more than 9 signals then they are referred to as SGA (the tenth input), SGB (the eleventh) and so on.

Note that for signal measures within zones, 'Gx' is used rather than 'SGx'.

 SxSensor x, where x is the sensor's index. For example, the first sequence in the protocol is S1, the second is S2 and so on. If you have more than 9 sensors then they are referred to as SA (the tenth sequence), SB (the eleventh) and so on.
 BxPhotobeam x, where x is the photobeam's index. For example, the first photobeam in the protocol is B1, the second is B2 and so on. If you have more than 9 photobeams then they are referred to as BA (the tenth photobeam), BB (the eleventh) and so on.
 AxPhotobeam array x, where x is the photobeam array's index. For example, the first photobeam array in the protocol is A1, the second is A2 and so on. If you have more than 9 photobeam arrays then they are referred to as AA (the tenth array), AB (the eleventh) and so on.
 ExRotary encoder x, where x is the rotary encoder's index. For example, the first rotary encoder in the protocol is E1, the second is E2 and so on. If you have more than 9 rotary encoders then they are referred to as EA (the tenth rotary encoder), EB (the eleventh) and so on.
 MVxMovement detector x, where x is the movement detector's index. For example, the first movement detector in the protocol is MV1, the second is MV2 and so on. If you have more than 9 movement detectors then they are referred to as MVA (the tenth movement detector), MVB (the eleventh) and so on.
 OxOutput switch x, where x is the output switch's index. For example, the first output switch in the protocol is O1, the second is O2 and so on. If you have more than 9 output switches then they are referred to as OA (the tenth switch), OB (the eleventh) and so on.
 SPxSyringe pump x, where x is the syringe pump's index. For example, the first syringe pump in the protocol is SP1, the second is SP2 and so on. If you have more than 9 syringe pumps then they are referred to as SPA (the tenth syringe pump), SPB (the eleventh) and so on.
 RxResult variable x, where x is the result variable's index. For example, the first result variable in the protocol is R1, the second is R2 and so on. If you have more than 9 result variables then they are referred to as RA (the tenth variable), RB (the eleventh) and so on.
 VSxVirtual switch x, where x is the virtual switch's index. For example, the first virtual switch in the protocol is VS1, the second is VS2 and so on. If you have more than 9 virtual switches then they are referred to as VSA (the tenth virtual switch), VSB (the eleventh) and so on.
 EVTxEvent x, where x is the Event's index. For example, the first Event in the protocol is EVT1, the second is EVT2 and so on. If you have more than 9 Events then they are referred to as EVTA (the tenth event), EVTB (the eleventh) and so on.
 PLGxPlug-in x, where x is the plug-in's index. For example, the first plug-in in the protocol is PLG1, the second is PLG2 and so on. If you have more than 9 plug-ins then they are referred to as PLGA (the tenth plug-in), PLGB (the eleventh) and so on.

Note that for plug-in measures within zones, 'Px' is used rather than 'PLGx'.

 HHead. Used to introduce measures that relate to the position of the animal's head. For example Z1_HN is the number of entries (N) of the animal's head (H) into the first zone (Z1).
 RRRearing. Used to introduce a measure that relates to rearing. For example, Z1_RRN is the number (N) of rears (RR) in the first zone (Z1).
 NCount. For example, Z1_N is the count of entries into the first (Z1) zone.
 TTime. For example, Z1K2_T is the time that the 2nd key (K2) was pressed while the animal was in the first zone (Z1).
 SPDSpeed. For example, Z3_SPD is speed in the third zone (Z3).
 DSTDistance.
 LELatency to an entry. For example, Z1_LE is the latency to enter the first zone (Z1).
 LXLatency to an exit.
 LPLatency to a key press.
 LRLatency to a key release.
 LSLatency to start. For example, S1_LS is the latency to the start of the first sequence (S1).
 LFLatency to finish.
 LALatency to activation. For example, I1_LA is the latency to activation of the first on/off input (I1).
 LDALatency to deactivation.
 MBLMobile.
 IMBLImmobile.
 ACTActive.
 IACTInactive.
 1STFirst. For example, ZONE_1ST is the first zone the animal entered.
 MXMaximum. For example, Z2_MXT is the maximum time/duration (T) of a visit to the second zone (Z2).
 MNMinimum.
 AVAverage. For example, Z1K2_AVT is the average press time (T) of the second key (K2) in the first zone (Z1).
 FRQFrequency.
 ANGLAbsolute turn angle.
 FDistance from a zone border (when outside the zone) or from a point.
 BDistance to a zone border (when inside the zone) or to a point.
 MTMovement towards a zone or point.
 MAMovement away from a zone or point.
 OTOrientation towards a point.
 OAOrientation away from a point.
 GCGetting closer to a zone. For example, Z1_TGC is time (T) getting closer (GC) to the first zone (Z1).
 GFGetting further from a zone.
 IHEInitial heading error.
 AHEAverage heading error.
 CWClockwise.
 ACWAnti-clockwise.
 LCLine crossing.

In some cases, more complete names are used where space allows. For example, the overall distance travelled in the test is called DISTANCE rather than just DST.

Full list of ANY-maze measure variable names

  

A full list of all the variable names used by ANY-maze when saving the Data page spreadsheet is given below:

 

Information measures:

  TESTTest number
  ANIMALAnimal number
  TREAMNTTreatment name
  TRMTCODETreatment code
  STAGEStage name
  TRIALTrial number
  STGTRIALStage name and trial number, for example 'Training 1'
  APPARTUSApparatus name
  END_RSNThe reason the test ended
  TIMETest time
  DAYTest day of the week
  AM_PMTest time of day (am/pm)
  DATETest date
  TESTERName of the tester
  TESTNOTETest notes
  ANMLNOTEAnimal notes
  SEGMENTSegment of the test
  LGHT_DRKAnimal lighter/darker than the apparatus
  PERIODThe time period, for example '0-30'
  Zx_LOCTNThe location of the Zx zone.

For more information on any of these measures, see Information measures.

  

Apparatus measures:

  DURATIONTest duration
  DISTANCETotal distance travelled
  SPEEDAverage speed
  ZONE_1STFirst zone entered
  MBL_TTotal time mobile
  IMBL_TTotal time immobile
  MBL_NTotal mobile episodes
  IMBL_NTotal immobile episodes
  ACT_TTotal time active
  IACT_TTotal time inactive
  ACT_NTotal active episodes
  IACT_NTotal inactive episodes
  MXACT_TLongest active episode
  MNACT_TShortest active episode
  MXIACT_TLongest inactive episode
  MNIACT_TShortest inactive episode
  CROSSINGNumber of line crossings
  ANGLEAbsolute turn angle
  H_DSTDistance travelled by the animal's head
  MAXSPEEDMaximum speed
  RTNSRotations of the animal's body
  RTNS_CWClockwise rotations of the animal's body
  RTNS_ACWAnti-clockwise rotations of the animal's body
  PATH_EFFPath efficiency
  MBL_LTLatency to start of first mobile episode
  IMMBL_LTLatency to start of first immobile episode
  FRZ_NTotal freezing episodes
  FRZ_TTotal time freezing
  FRZ_LTLatency to start of first freezing episode
  AV_FRZAverage freezing score
  ZN_LISTVisited zone list
  POSREV_NOn/off inputs positive reversal
  NEGREV_NOn/off inputs negative reversal
  REAR_NNumber of rears
  REAR_TTotal time rearing
  REAR_LSLatency to first rear
  REAR_AVTAverage duration of a rear
  REAR_MXTMaximum duration of a rear
  REAR_MNTMinimum duration of a rear

For more information on any of these measures, see Apparatus measures.

  

Apparatus key measures:

The following variable names are all prefixed with Kx, where x is the key's index: 1 = first key, 2 = second key and so on.

  Kx_NNumber of presses
  Kx_TTime pressed
  Kx_LPLatency to first press
  Kx_LRLatency to first release
  Kx_MXTLongest press
  Kx_MNTShortest press
  Kx_AVTAverage press duration
  Kx_FRQPress frequency
  Kx_DFPDistance travelled by the animal before first press
  Kx_LSTList of durations of each key press

For more information on any of these measures, see Key measures.

  

Apparatus on/off input measures:

The following variable names are all prefixed with Ix, where x is the on/off input's index: 1 = first on/off input, 2 = second on/off input and so on.

  Ix_NNumber of activations
  Ix_TTime activated
  Ix_LALatency to first activation
  Ix_LDALatency to first deactivation
  Ix_MXTLongest activation
  Ix_MNTShortest activation
  Ix_AVTAverage activation duration
  Ix_FRQActivation frequency

For more information on any of these measures, see On/off input measures.

  

Apparatus signal measures:

The following variable names are all prefixed with SGx, where x is the signal's index: 1 = first signal, 2 = second signal and so on.

  SGx_AVGAverage value
  SGx_MAXMaximum value
  SGx_MINMinimum value
  SGx_MXTTime of maximum value
  SGx_MNTTime of minimum value
  SGx_BLBaseline value
  SGx_BDVBaseline deviation
  SGx_BSDBaseline standard deviation
  SGx_BLTTime of the end of the baseline period
  SGx_PDTTime of first positive deviation from baseline
  SGx_PDRTime of first return to baseline from positive deviation
  SGx_NDTTime of first negative deviation from baseline
  SGx_NDRTime of first return to baseline from negative deviation
  SGx_PINIntegral above baseline
  SGx_NINIntegral below baseline

For more information on any of these measures, see Signal measures.

  

Apparatus sensor measures:

The following variable names are all prefixed with Sx, where x is the sensor's index: 1 = first sensor, 2 = second sensor and so on.

  Sx_AVGAverage value
  Sx_MAXMaximum value
  Sx_MINMinimum value
  Sx_VALInitial value
  Sx_CHGChange from initial value

For more information on any of these measures, see Sensor measures.

  

Apparatus rotary encoder measures:

The following variable names are all prefixed with Ex, where x is the rotary encoder's index: 1 = first rotary encoder, 2 = second rotary encoder and so on.

  Ex_NNumber of rotations
  Ex_NCNumber of clockwise rotations
  Ex_NACNumber of anti-clockwise rotations
  Ex_NRVNumber of reversals of direction
  Ex_NHFNumber of half-rotations
  Ex_NQTNumber of quarter-rotations
  Ex_MXRMaximum RPM
  Ex_MNRMinimum RPM
  Ex_AVRAverage RPM
  Ex_CDNumber of degrees of clockwise rotation
  Ex_ACDNumber of degrees of anti-clockwise rotation
  Ex_DSTDistance

For more information on any of these measures, see Rotary encoder measures.

  

Apparatus movement detector measures:

The following variable names are all prefixed with MVx, where x is the movement detector's index: 1 = first detector, 2 = second detector and so on.

  MVx_NCount of beam breaks
  MVx_TTime moving 
  MVx_LALatency to first movement (beam break)

For more information on any of these measures, see Movement detector measures.

  

Apparatus syringe pump measures:

The following variable names are all prefixed with SPx, where x is the syringe pump's index: 1 = first pump, 2 = second pump and so on.

  SPx_VIVolume infused
  SPx_VWVolume withdrawn

For more information on any of these measures, see Syringe pump measures.

  

Apparatus result variable measures:

The following variable names are all prefixed with Vx, where x is the result variable's index: 1 = first variable, 2 = second variable and so on.

  Rx_AVGAverage value
  Rx_MAXMaximum value
  Rx_MINMinimum value
  Rx_SUMSum of values
  Rx_NCount of values
  Rx_VALValue (if the result variable is noted only once at the end of the test)

For more information on any of these measures, see Procedure measures.

  

Apparatus virtual switch measures:

The following variable names are all prefixed with Vx, where x is the virtual switch's index: 1 = first virtual switch, 2 = second virtual switch and so on.

  Vx_NNumber of activations
  Vx_TLatency to first activation
  Vx_LDALatency to first deactivation
  Vx_MXTLongest activation
  Vx_MNTShortest activation
  Vx_AVTAverage activation duration
  Vx_FRQFrequency of activations
  Vx_DFADistance travelled before first activation
  Vx_DACDistance travelled while active

For more information on any of these measures, see Virtual switch measures.

  

Apparatus OPAD measures:

Some of the following variable names are prefixed with OPD_x, where x is the index of the temperature of interest: 1 = first temperature of interest, 2 = second temperature of interest and so on.

  OPD_TCBTemperature when contact broken
  OPD_xTCTemperature of interest: time in contact
  OPD_xNBTemperature of interest: number of times contact broken
  OPD_xNMTemperature of interest: number of times contact made
  OPD_xNLTemperature of interest: number of licks
  OPD_NLCTNumber of non-lick contacts
  OPD_LTCBLeft thermal element; temperature when contact broken
  OPD_xLTCLeft thermal element; temperature of interest: time in contact
  OPD_xLNBLeft thermal element; temperature of interest: number of times contact broken
  OPD_xLNMLeft thermal element; temperature of interest: number of times contact made
  OPD_xLNLLeft thermal element; temperature of interest: number of licks
  OPD_RTCBRight thermal element; temperature when contact broken
  OPD_xRTCRight thermal element; temperature of interest: time in contact
  OPD_xRNBRight thermal element; temperature of interest: number of times contact broken
  OPD_xRNMRight thermal element; temperature of interest: number of times contact made
  OPD_xRNLRight thermal element; temperature of interest: number of licks

For more information on any of these measures, see OPAD measures.

  

Apparatus RAPC measures:

  RAPC_T1Number of RAPC type 1 errors
  RAPC_T2Number of RAPC type 2 errors
  RAPC_SEQDoor sequence

For more information on any of these measures, see Performing experiments and analysing results for RAPC.

  

Apparatus plug-in measures:

The following variable names are all prefixed with Px, where x is the plug-in's index: 1 = first plug-in, 2 = second plug-in and so on. 

The following variable names apply to RT_ONOFF result type measures:

  PLGx_NNumber of activations
  PLGx_TTime active
  PLGx_LONLatency to first activation
  PLGx_LOFLatency to first deactivation
  PLGx_MXTLongest activation
  PLGx_MNTShortest activation
  PLGx_AVTAverage activation duration
  PLGx_FRQActivation frequency

The following variable names apply to RT_VALUE result type measures:

  PLGx_AVGAverage value
  PLGx_MAXMaximum value
  PLGx_MINMinimum value

The following variable names apply to RT_CUMULATIVE result type measures:

  PLGx_VALCumulative value

For more information on any of these measures, see Plug-in measures.

  

Zone measures:

The following variable names are prefixed with Zx, where x is the zone's index: 1 = first zone, 2 = second zone and so on.

  Zx_NNumber of entries to the zone
  Zx_1STWas first zone entered
  Zx_TTime in zone
  Zx_DSTDistance travelled in the zone
  Zx_LELatency to first entry to the zone
  Zx_LXLatency to first exit to the zone
  Zx_SPDAverage speed in the zone
  Zx_MXTLongest visit to the zone
  Zx_MNTShortest visit to the zone
  Zx_AVTAverage duration of visit to the zone
  Zx_MBLTTime mobile in the zone
  Zx_IMBLTTime immobile in the zone
  Zx_IMBLNImmobile episodes in the zone
  Zx_ACTTTime active in the zone
  Zx_IACTTTime inactive in the zone
  Zx_IACTNInactive episodes in the zone
  Zx_AVFAverage distance from the zone
  Zx_MXFMaximum distance from the zone
  Zx_MNFMinimum distance from the zone
  Zx_AVBAverage distance to the zone border
  Zx_MXBMaximum distance to the zone border
  Zx_MNBMinimum distance to the zone border
  Zx_TGCTime getting closer to the zone
  Zx_TGFTime getting further away from the zone
  Zx_ANGLAbsolute turn angle while in the zone
  Zx_HTTime the animal's head was in the zone
  Zx_HNNumber of entries of the animal's head into the zone
  Zx_HDSTDistance travelled by the animal's head in the zone
  Zx_HLELatency to the first entry of the animal's head into the zone
  Zx_HLXLatency to the first exit of the animal's head from the zone
  Zx_HAVFAverage distance of the animal's head from the zone
  Zx_HMXFMaximum distance of the animal's head from the zone
  Zx_HMNFMinimum distance of the animal's head from the zone
  Zx_HAVBAverage distance from the animal's head to the zone border
  Zx_HMXBMaximum distance from the animal's head to the zone border
  Zx_HMNBMinimum distance from the animal's head to the zone border
  Zx_RRNNumber of rears in the zone  
  Zx_RRTTotal time rearing in the zone  
  Zx_RRLLatency to first rear in the zone  
  Zx_RRAVTAverage duration of a rear in the zone  
  Zx_RRMXTMaximum duration of a rear in the zone  
  Zx_RRMNTMinimum duration of a rear in the zone  
  Zx_IHEInitial heading error to the zone
  Zx_AHEAverage absolute heading error to the zone
  Zx_TMTTime moving towards the zone
  Zx_TMATime moving away from the zone
  Zx_DFEDistance travelled until first entry into the zone
  Zx_LLELatency to last entry to the zone
  Zx_MXSPDMaximum speed in the zone
  Zx_EXITNumber of exits from the zone
  Zx_CIPLCorrected integrated path length
  Zx_INDSTInitial distance from the zone
  Zx_CUMDCumulative distance from the zone
  Zx_T_ORTime oriented towards the centre of the zone when inside zone
  Zx_HICOTime the animal's head was in the zone when its centre was outside the zone
  Zx_PEFFPath efficiency of first entry to the zone
  Zx_FRZNFreezing bouts in the zone 
  Zx_FRZTTime freezing in the zone
  Zx_SIHESigned initial heading error to the zone
  Zx_WCTTime spent in Whishaw's corridor
  Zx_WCDDistance travelled in Whishaw's corridor
  Zx_LSTList of the duration of each visit to the zone
  Zx_AHTAAbsolute head turn angle in the zone
  Zx_LCNumber of line crossings in the zone

For more information on any of these measures, see Zone measures.

  

Zone key measures:

The following variable names are prefixed with ZxKy, where x is the zone's index and y the key's index. For example Z1K2 is a measure for the 2nd key in the 1st zone.

  ZxKy_NNumber of presses while the animal is in the zone
  ZxKy_TTime pressed while the animal is in the zone
  ZxKy_LPLatency to first press while the animal is in the zone
  ZxKy_LRLatency to first release while the animal is in the zone
  ZxKy_MXTLongest press while the animal is in the zone
  ZxKy_MNTShortest press while the animal is in the zone
  ZxKy_AVTAverage press while the animal is in the zone
  ZxKy_FRQPress frequency while the animal is in the zone

For more information on any of these measures, see Key measures.

  

Zone on/off input measures:

The following variable names are prefixed with ZxIy, where x is the zone's index and y is the on/off input's index. For example, Z1I2 is a measure for the 2nd on/off input in the 1st zone.

  ZxIx_NNumber of activations while the animal is in the zone
  ZxIx_TTime activated while the animal is in the zone
  ZxIx_LALatency to first activation while the animal is in the zone
  ZxIx_LDALatency to first deactivation while the animal is in the zone
  ZxIx_MXTLongest activation while the animal is in the zone
  ZxIx_MNTShortest activation while the animal is in the zone
  ZxIx_AVTAverage activation duration while the animal is in the zone
  ZxIx_FRQActivation frequency while the animal is in the zone

For more information on any of these measures, see On/off input measures.

  

Zone signal measures:

The following variable names are prefixed with ZxGy, where x is the zone's index and y is the signal's index. For example, Z1G2 is a measure for the 2nd signal in the 1st zone.

  ZxGy_AVGAverage value while the animal is in the zone
  ZxGy_MAXMaximum value while the animal is in the zone
  ZxGy_MINMinimum value while the animal is in the zone
  ZxGy_PINIntegral above baseline while the animal is in the zone
  ZxGy_NINIntegral below baseline while the animal is in the zone
  ZxGy_MXAverage maximum for each visit to the zone
  ZxGy_MXTAverage time to maximum for each visit to the zone
  ZxGy_MIAverage minimum for each visit to the zone
  ZxGy_MITAverage time to minimum for each visit to the zone
  ZxGy_MENAverage value at zone entry
  ZxGy_MEXAverage value at zone exit

For more information on any of these measures, see Signal measures.

  

Zone sensor measures:

The following variable names are prefixed with ZxSy, where x is the zone's index and y is the sensor's index. For example, Z1S2 is a measure for the 2nd sensor in the 1st zone.

  ZxSy_AVGAverage value while the animal is in the zone
  ZxSy_MAXMaximum value while the animal is in the zone
  ZxSy_MINMinimum value while the animal is in the zone
  ZxSy_VALInitial value while the animal is in the zone

For more information on any of these measures, see Sensor measures.

  

Zone rotary encoder measures:

The following variable names are prefixed with ZxEy, where x is the zone's index and y is the rotary encoder's index. For example, Z1E2 is a measure for the 2nd rotary encoder in the 1st zone.

  ZxEy_NNumber of rotations while the animal is in the zone
  ZxEy_NCNumber of clockwise rotations while the animal is in the zone
  ZxEy_NACNumber of anti-clockwise rotations while the animal is in the zone
  ZxEy_NRVNumber of reversals of direction while the animal is in the zone
  ZxEy_NHFNumber of half-rotations while the animal is in the zone
  ZxEy_NQTNumber of quarter-rotations while the animal is in the zone
  ZxEy_MXRMaximum RPM while the animal is in the zone
  ZxEy_MNRMinimum RPM while the animal is in the zone
  ZxEy_AVRAverage RPM while the animal is in the zone
  ZxEy_CDNumber of degrees of clockwise rotation while the animal is in the zone
  ZxEy_ACDNumber of degrees of anti-clockwise rotation while the animal is in the zone
  ZxEy_DSTDistance while the animal is in the zone

For more information on any of these measures, see Rotary encoder measures.

  

Zone syringe pump measures:

The following variable names are prefixed with ZxSPy, where x is the zone's index and y is the syringe pump's index. For example, Z1SP2 is a measure for the 2nd syringe pump in the 1st zone.

  ZxSPy_VIVolume infused while the animal is in the zone
  ZxSPy_VWVolume withdrawn while the animal is in the zone

For more information on any of these measures, see Syringe pump measures.

  

Zone result variable measures:

The following variable names are prefixed with ZxRy, where x is the zone's index and y is the result variable's index. For example, Z1R2 is a measure for the 2nd result variable in the 1st zone.

  ZxRy_AVGAverage value while the animal is in the zone
  ZxRy_MAXMaximum value while the animal is in the zone
  ZxRy_MINMinimum value while the animal is in the zone
  ZxRy_USMSum of values while the animal is in the zone
  ZxRy_NCount of values while the animal is in the zone
  ZxRy_VALValue (if the result variable is noted only once at the end of the test), if the animal is in the zone at the end of the test

For more information on any of these measures, see Procedure measures.

  

Zone virtual switch measures:

The following variable names are prefixed with ZxVy, where x is the zone's index and y is the virtual switch's index. For example, Z1V2 is a measure for the 2nd virtual switch in the 1st zone.

  ZxVy_NNumber of activations while the animal is in the zone
  ZxVy_TLatency to first activation while the animal is in the zone
  ZxVy_LALatency to first deactivation while the animal is in the zone
  ZxVy_LDALongest activation while the animal is in the zone
  ZxVy_MXTShortest activation while the animal is in the zone
  ZxVy_MNTAverage activation duration while the animal is in the zone
  ZxVy_AVTFrequency of activations while the animal is in the zone
  ZxVy_FRQDistance travelled before first activation while the animal is in the zone
  ZxVy_DACDistance travelled while active while the animal is in the zone

For more information on any of these measures, see Virtual switch measures.

  

Zone plug-in measures:

The following variable names are prefixed with ZxPy, where x is the zone's index and y is the plug-in's index. For example, Z1P2 is a measure for the 2nd plug-in in the 1st zone.

The following variable names apply to RT_ONOFF result type measures:

  ZxPy_NNumber of activations while the animal is in the zone
  ZxPy_TTime active while the animal is in the zone
  ZxPy_LONLatency to first activation while the animal is in the zone
  ZxPy_LOFLatency to first deactivation while the animal is in the zone
  ZxPy_MXTLongest activation while the animal is in the zone
  ZxPy_MNTShortest activation while the animal is in the zone
  ZxPy_FRQActivation frequency while the animal is in the zone

The following variable names apply to RT_VALUE result type measures:

  ZxPy_AVGAverage value while the animal is in the zone
  ZxPy_MAXMaximum value while the animal is in the zone
  ZxPy_MINMinimum value while the animal is in the zone

The following variable names apply to RT_CUMULATIVE result type measures:

  ZxPy_VALCumulative value while the animal is in the zone

For more information on any of these measures, see Plug-in measures.

  

Point measures:

The following variable names are prefixed with Px, where x is the point's index: 1 = first point, 2 = second point and so on.

  Px_AVFAverage distance from the point
  Px_MXFMaximum distance from the point
  Px_MNFMinimum distance from the point
  Px_TMTTime moving towards the point
  Px_TMATime moving away from the point
  Px_IHEInitial heading error to the point
  Px_AHEAverage heading error to the point
  Px_HAVFAverage distance of the animal's head from the point
  Px_HMXFMaximum distance of the animal's head from the point
  Px_HMNFMinimum distance of the animal's head from the point
  Px_HTMTTime the animal's head was moving towards the point
  Px_HTMATime the animal's head was moving away from the point
  Px_HTOTTime the animal was oriented towards the point
  Px_HTOATime the animal was oriented away from the point

For more information on any of these measures, see Point measures.

  

Sequence measures:

The following variable names are prefixed with Sx, where x is the sequence's index: 1 = the first sequence, 2 = second sequence and so on.

  SQx_LSLatency to first sequence start
  SQx_LFLatency to first sequence end
  SQx_NNumber of sequences
  SQx_TTime spent performing sequences
  SQx_AVTAverage time to perform a sequence
  SQx_MXTLongest time to perform a sequence
  SQx_MNTShortest time to perform a sequence
  SQx_DSTDistance travelled while performing sequence
  SQx_AVDAverage distance travelled per sequence
  SQx_MXDMaximum distance travelled in a sequence
  SQx_MNDMinimum distance travelled in a sequence
  SQx_AVSPAverage speed during the sequence
  SQx_BRKNNumber of broken sequences

For more information on any of these measures, see Sequence measures.

  

Fields and calculations

The variable names of fields and calculations are the first 8 characters of the element's full name, with any illegal characters replaced by an underscore - this mainly applies to spaces. If the resulting name ends with a dot or an underscore, then the last character is replaced with a hash sign (#).

This method of naming fields and calculation variables means that names CAN be identical, for example the calculations 'Percentage of time in open arms' and 'Percentage of time in closed arms' would both be given variable names of 'PERCENTA'. It's worth considering this when naming fields and calculations, although getting variables names right isn't hugely important, as you can just change them in SPSS.

Test data variable names

  

A full list of all the variable names used by ANY-maze when saving the Test data report is given below:

  

Test control 

  PAUS_ONPause on
  PAUS_OFFPause off
  TEST_ENDTest end

  

Animal data

  COG_XThe x coordinate of the centre of the animal (COG = Centre Of Gravity)
  COG_YThe y coordinate of the centre of the animal (COG = Centre Of Gravity)
  HEAD_XThe x coordinate of the animal's head
  HEAD_YThe y coordinate of the animal's head
  TAIL_XThe x coordinate of the base of the animal's tail
  TAIL_YThe y coordinate of the base of the animal's tail
  HDN_ONHidden on (the animal has become hidden)  
  HDN_OFFHidden off (the animal has ceased to be hidden) 
  SPEEDSpeed of the animal 
  MBLMobile (the animal has become mobile)
  IMBLImmobile (the animal has become immobile)
  ROT_CWClockwise rotation  
  ROT_ACWAnti-clockwise rotation   
  FRZ_SCRThe animal's freezing score
  FRZ_ONFreezing on (the animal freezes)
  FRZ_OFFFreezing off (the animal stops freezing)
  LENGTHThe length of the animal
  REL_LENThe relative length of the animal (relative to its mean length)

  

Zone data

The following variable names are prefixed with Zx, where x is the zone's index: 1 = the first zone, 2 = second zone and so on.

  Zx_ENTRYThe animal is in the zone
  Zx_EXITThe animal is not in the zone
  Zx_DSTThe distance of the animal from the zone (when outside the zone)
  Zx_BDRThe distance of the animal from the zone border (when inside the zone) 
  Zx_H_DSTThe distance of the animal's head from the zone (when the head is outside the zone)
  Zx_H_BDRThe distance of the animal's head from the zone border (when the head is inside the zone)
  Zx_HDERRThe animal's heading error to the zone

  

Point data

The following variable names are prefixed with Px, where x is the point's index: 1 = the first point, 2 = second point and so on.

  Px_DSTThe distance of the animal from the point
  Px_H_DSTThe distance of the animal's head from the point
  Px_HDERRThe animal's heading error to the point

  

Sequence data

The following variable names are prefixed with SQx, where x is the sequence's index: 1 = the first sequence, 2 = second sequence and so on.

  SQx_STRTThe start of the sequence
  SQx_ENDThe end of the sequence
  SQx_BRKNThe sequence being broken

  

Key data

The following variable names are prefixed with Kx, where x is the key's index: 1 = the first key, 2 = second key and so on.

  Kx_ONThe key is active 
  Kx_OFFThe key is inactive  

  

On/off input data

The following variable names are prefixed with Ix, where x is the on/off input's index: 1 = the first on/off input, 2 = second on/off input and so on.

  Ix_ONThe on/off input is active 
  Ix_OFFThe on/off input is inactive  
  I_SEQOn/off input sequence - the indexes of inputs that were activated
  I_RV_POSOn/off input sequence positive reversal
  I_RV_NEGOn/off input sequence negative reversal

  

Signal input data

The following variable names use an x to represent the signal's index: 1 = the first signal, 2 = second signal and so on.

  SGxThe value of the signal

  

Sensor data

The following variable names use an x to represent the sensor's index: 1 = the first sensor, 2 = second sensor and so on.

  SNSxThe value of the sensor

  

Photobeam data

The following variable names are prefixed with Bx, where x is the photobeam's index: 1 = the first photobeam, 2 = second photobeam and so on.

  Bx_ONThe photobeam is active 
  Bx_OFFThe photobeam is inactive

  

Rotary encoder data

The following variable names are prefixed with REx, where x is the rotary encoder's index: 1 = the first rotary encoder, 2 = second rotary encoder and so on.

  REx_CWPClockwise pulse of the rotary encoder
  REx_ACWPAnti-clockwise pulse of the rotary encoder
  REx_RPMSpeed of the rotary encoder (RPM)

  

Movement detector data

The following variable names use an x to represent the movement detector's index: 1 = the first movement detector, 2 = second movement detector and so on.

 MOVDETxA beam of the movement detector has been broken

  

Output switch data

The following variable names are prefixed with Ox, where x is the output switch's index: 1 = the first switch, 2 = second switch and so on.

  Ox_ONThe output switch is active   
  Ox_OFFThe output switch is inactive  

  

Speaker data

The following variable names use an x to represent the speaker's index: 1 = the first speaker, 2 = second speaker and so on.

  SPKxSpeaker activation
  SPKVOLxThe volume of the speaker

  

Light controller data

The following variable names use an x to represent the light controller's index: 1 = the first light controller, 2 = second light controller and so on.

  LGHTONxThe light controller is activated
  LGHTLUXxThe light controller light level

  

Syringe pump data

The following variable names use an x to represent the syringe pump's index: 1 = the first syringe pump, 2 = second syringe pump and so on.

  SPRUNxSyringe pump is running
  SPVOLIxVolume infused
  SPVOLWxVolume withdrawn

  

Shocker data

The following variable names are prefixed with SKx, where x is the shocker's index: 1 = the first shocker, 2 = second shocker and so on.

  SKx_ONShocker activation
  SKx_CRNTShocker current

  

Result variable data

The following variable names use an x to represent the result variable's index: 1 = the first variable, 2 = second variable and so on.

  VARxResult variable value

  

Virtual switch data

The following variable names are prefixed with VSx, where x is the virtual switch's index: 1 = the first virtual switch, 2 = second virtual switch and so on.

  VSx_ONThe virtual switch is active
  VSx_OFFThe virtual switch is inactive

  

Event data

The following variable names use an x to represent the event's index: 1 = the first event, 2 = second event and so on.

  EVTxThe event occurs

  

Plug-in data

The following variable names are prefixed with PLGx, where x is the plug-in's index: 1 = the first plug-in, 2 = second plug-in and so on.

  PLGx_ONThe on/off-type plug-in is active
  PLGx_OFFThe on/off-type plug-in is inactive
  PLGxThe value of the value-type plug-in

See also:

 Information measures 
 Apparatus measures 
 Zone measures 
 Point measures 
 Sequence measures 
 Key measures 
 On/off input measures 
 Rotary encoder measures 
 Signal measures 
 Sensor measures 
 Movement detector measures 
 On/off output measures 
 Speaker measures 
 Shocker measures 
 Pellet dispenser measures 
 Laser controller measures 
 Syringe pump measures 
 OPAD measures 
 Light controller measures 
 Performing experiments and analysing results for RAPC 
 Procedure measures 
 Event measures 
 Virtual switch measures 
 Plug-in measures 
 Transferring data to Microsoft Excel 
 Transferring data to Microsoft Access 
 Transferring data to SPSS 
 Transferring data to SigmaStat 
 Transferring data to Systat 
 Transferring data to Statistica 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0894