Now Shipping! – The EyeLink 3; combined head and eye tracking at up to 1000 Hz.

Template: Basic Custom Class Variable Use
#1
Basic Custom Class Variable Use

Required Experiment Builder Version: 1.10.165 or higher
EyeLink Required: Yes
Type: Complete Example
Difficulty Level: Intermediate

This example illustrates:
  • How to use Custom Class and Execute nodes to store a number from a keyboard press and manipulate the number with the crunchNumbers custom function
  • How to reference the variables stored within the Custom Class node in the Update Attribute node
Description:

This example illustrates the basics of making Custom Class variables available to Experiment Builder. The Custom Class performs some simple arithmetic based on a value input by the participant. It then returns these values to a feedback display. It demonstrates using the "get" and "set" methods in the Custom Class to make a variable readable and writable, and how to pass variables from the Experiment Builder graph to the Custom Class.

**Additional detailed information about the project is given in the notes section for most nodes. To see notes for a given node, either mouse over that node or click on it to display the notes window. If the notes window is not visible, go to the "View" drop down menu in Experiment Builder, select "Properties", and check "Note".

NOTE: Please see our Custom Randomization and Basic Custom Class Usage Experiment Builder Webinar for more details of creating Custom Classes.

Instructions:
  1. Download the BasicCustomClassVariables.ebz example from this message.
  2. Launch the Experiment Builder application.
  3. Unpack the BasicCustomClassVariables.ebz file to a location on your Experiment Builder PC with "File menu -> Unpack".
  4. Open the project in Experiment Builder.
  5. Deploy the project to a new folder.
  6. Run the BasicCustomClassVariables.exe from the deployed directory.


.ebz   BasicCustomClassVariables.ebz (Size: 38.13 KB / Downloads: 36)