labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
    • Services
  • Technology
    • Feature Overview
    • Code-Free Study Building
    • Eye Tracking
    • Mouse Tracking
    • Generative AI Integration
    • Multi User Studies
    • More ...
      • Reaction Time/Precise Timing
      • Text Transcription
      • Heart Rate Detection (rPPG)
      • Emotion Detection
      • Questionnaires/Surveys
      • Experimental Control
      • Data Privacy & Security
      • Desktop App
      • Mobile App
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Licenses
    • Top-Up Recordings
    • Subject Recruitment
    • Study Building
    • Dedicated Support
    • Checkout
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
    • Third-Party Licenses
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Guide
    • GETTING STARTED

      • Task Editor
      • Stimulus Presentation
      • Correctness of Response
      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Experiment Design
        • Creating a Study
        • Data Frame Patterns
      • Randomization & Balance
      • Eye Tracking
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • License & Services
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Task Controls
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Settings
      • Variables
      • Media
      • Texts & Translate
      • Launch & Participate
      • Subject Management
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setup
  • FAQ
    • Features
    • Support Policy & Guidelines
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Newsletter Archive
  • Documents
  • Classroom

Working with Variables

Variables are the backbone of any Labvanced experiment. They are containers that store data at runtime: participant responses, reaction times, stimulus conditions, accuracy scores, and any computed value your study logic depends on. Without variables, an experiment cannot record, cannot adapt, and cannot make decisions. Every event action that reads a value or writes a result is operating on a variable.

Understanding variables is the key to moving from static experiments to fully dynamic, branching studies. A variable can trigger an event when its value changes. An event can update a variable. A variable value can control which image is shown, which task branch is taken, or whether a participant moves forward or is redirected. This interplay between variables and events is what gives Labvanced experiments their flexibility.

In this section

Introduction to Variables

What variables are, what data they hold, and why every experiment depends on them. Start here if you are new to the variable system.

Creating Variables

Four ways to create a variable: from the Variables tab, the task editor panel, an object prompt, or the event system. Covers naming conventions and when each method is most useful.

Variable Types

The six types of variables in Labvanced: system, factor, object, custom, array, and data frame. What each type stores and when to use it.

Variable Properties

A full reference for every setting: data type, scale, format, start value, reset behavior, and recording options. Use this page to configure a variable correctly for your study design.

Time Series Variables

How to record continuous measurements like mouse position, gaze, or physiological signals. Covers record type, sampling method, and what the exported data looks like.

Data Frame Variables

How to upload a CSV as a data frame, map file stimuli, and read rows trial by trial using the event system. The standard tool for stimulus lists and counterbalancing.

Before you build

Variables are global to the study. A variable created in one task is visible and accessible in every other task and in the event system across the entire study. Variable names must be unique: two variables cannot share the same name.

Before building your first task, map out the variables you need. Ask: what data do I need to collect? What decisions does the experiment need to make? What values need to be tracked across trials or tasks? Creating variables with a clear plan is significantly easier than adding them mid-build and reworking event logic around them.

What gets recorded

System, factor, and object variables are recorded automatically. Custom variables require two additional steps: enable Record Variable in the variable properties, and add a Set / Record Variable action in the event system to write the value at the right moment.

For time-sensitive measurements like reaction time, mouse tracking, or physiological signals, see Time Series Variables for the additional Record Type and Sampling Method settings that control how continuous data is captured.

Prev
Events
Next
Task Wizard