<aside>

image.png

Edia-Executor

⚙️ The engine running the experiment.

ℹ️ The essential components of an EDIA experiment

The experiment codingtool is the engine of the EDIA framework. This is an overview of the main methods that can be used when developing your experiment.

For more indepth information on the methods, see the API reference.

#️⃣ Statemachine

The experiment script is a Singleton, so we can access it via Experiment.Instance. EDIA provides the following methods regarding controlling the global statemachine:

WaitOnProceed(); Sets the experiment statemachine into wait-mode.
Proceed(); Proceeds the statemachine to next step / trial / block. Depending on current state.
ProceedWithDelay(float); Auto proceeds after given time, in seconds.

#️⃣ Message Panel

The experiment script is a Singleton, so we can access it via Experiment.Instance. EDIA provides the following methods regarding the message panel:

ShowMessageToUser(string msg) Single message
ShowMessageToUser(List<string> msgs) Multi page, shows next button per page, proceed on last
ShowMessageToUser(string msg, float duration) Single message, hides after duration, does not auto proceed
ShowMessageToUser(string msg, bool showButton) Single message, without proceed button
HideMessagePanelMenu() Hide buttons on panel

#️⃣ Control panel

The experiment script is a Singleton, so we can access it via Experiment.Instance. EDIA provides the following methods towards the control panel for the experimenter.

ShowMessageToExperimenter(string msg) Pops up a message panel in the control panel with an OK button.
ShowMessageToExperimenter(string msg, bool autohide) Pops up a message panel, auto hides after 2 seconds (default value)
EnablePauseButton(bool _onOff) Shows / enables Pause button
EnableEyeCalibrationTrigger(bool _onOff) Shows / enables Eye calibration button
AddTrialInfoToPanel(string key, string value) Adds <key,value> pair to the control info panel. Auto deletes after trial is done

#️⃣ Logging

The experiment script is a Singleton, so we can access it via Experiment.Instance. EDIA provides the following methods for logging your data to the logfiles.

AddToTrialResults(string key, string value); Add <key,value> pair to trialresults.csv file
ConvertAndSaveDataToUXF(string[] headers, List<string[]> values, string filename) Directly save your data with custom headers to a file.

#️⃣ Logging

The experiment script is a Singleton, so we can access it via Experiment.Instance. EDIA provides the following methods for logging your data to the logfiles.