-
Notifications
You must be signed in to change notification settings - Fork 48
Trial
The base unit of experiments. A Trial is usually a singular attempt at a task by a participant after/during the presentation of a stimulus.
status
: Status of the trial (enum)
block
: The block associated with this session
result
: Dictionary of results in a order.
number
: Returns non-zero indexed trial number. This is generated based on its position in the block, and the ordering of the blocks within the session.
numberInBlock
: Returns non-zero indexed trial number for the current block.
session
: The session associated with this trial
settings
: Trial settings. These will override block settings if set.
UXF.Trial.UXF.Trial(UXF.Block)
Manually create a trial. When doing this you need to add this trial to a block with block.trials.Add(trial)
Parameters
None
UXF.Trial.SetReferences(UXF.Block)
Set references for the trial.
Parameters
trialBlock
: The block the trial belongs to.
UXF.Trial.Begin()
Begins the trial, updating the current trial and block number, setting the status to in progress, starting the timer for the trial, and beginning recording positions of every object with an attached tracker
Parameters
None
UXF.Trial.End()
Ends the Trial, queues up saving results to output file, stops and saves tracked object data.
Parameters
None
UXF.Trial.SaveDataTable(UXF.UXFDataTable, string, UXF.UXFDataType)
Saves a DataTable to the storage locations(s) for this trial. A column will be added in the trial_results CSV listing the location(s) of these data.
Parameters
table
: The data to be saved.
dataName
: Name to be used in saving. It will be appended with the trial number.
dataType
:
UXF.Trial.SaveJSONSerializableObject(System.Collections.Generic.List<object>, string, UXF.UXFDataType)
Saves a JSON Serializable Object to the storage locations(s) for this trial. A column will be added in the trial_results CSV listing the location(s) of these data.
Parameters
serializableObject
: The data to be saved.
dataName
: Name to be used in saving. It will be appended with the trial number.
dataType
:
UXF.Trial.SaveJSONSerializableObject(System.Collections.Generic.Dictionary<string, object>, string, UXF.UXFDataType)
Saves a JSON Serializable Object to the storage locations(s) for this trial. A column will be added in the trial_results CSV listing the location(s) of these data.
Parameters
serializableObject
: The data to be saved.
dataName
: Name to be used in saving. It will be appended with the trial number.
dataType
:
UXF.Trial.SaveText(string, string, UXF.UXFDataType)
Saves a string of text to the storage locations(s) for this trial. A column will be added in the trial_results CSV listing the location(s) of these data.
Parameters
text
: The data to be saved.
dataName
: Name to be used in saving. It will be appended with the trial number.
dataType
:
UXF.Trial.SaveBytes(System.Byte[], string, UXF.UXFDataType)
Saves an array of bytes to the storage locations(s) for this trial. A column will be added in the trial_results CSV listing the location(s) of these data.
Parameters
bytes
: The data to be saved.
dataName
: Name to be used in saving. It will be appended with the trial number.
dataType
:
Note: This file was automatically generated
๐ง Core topics
- ๐ Background
- โจ UXF 2.0
- โ๏ธ Compatibility
- ๐ถ๏ธ Oculus Quest Setup
- ๐ญ Concepts
- ๐ ๏ธ Get started
- ๐ Examples
- ๐ฅ๏ธ Built-in UI
- ๐ Session generation
- โฐ Events
- ๐ Data collection
- โ๏ธ Collect custom data
- ๐ Custom Data Handler
- ๐ Remote Data Collection
- ๐๏ธ WebGL DynamoDB setup
- ๐ Processing DynamoDB CSVs
- ๐ซ HTTP Post Setup
- ๐ง Settings system
- ๐๐ฝ Tracker system
- ๐ Logging system
โ ๏ธ Common issues- ๐ผ๏ธ Multi-scene experiments
- ๐บ Videos
- ๐จโ๐ Full written tutorial
- ๐ฆ Asset links
- ๐จโ๐ซ Unity tutorial links
- ๐ Useful code snippets
- ๐ก Programming ideas
- ๐งฎ Example R processing