...
- ClearDesign
- This command clears up all known conditions
- NewDesign <design name>
- This command clears up all known conditions, and set up a name for the active "design". A design has any number of conditions. A condition has any number of trial types, and specific outcomes. See more below.
- AddCondition Name <condition name> TrialTypes <trial types> Outcomes <trial outcomes> Color <R G B> Visible <visibility> SpatialPosition <X Y> Group <group>
- This command add a new condition to the active design. The condition will average spike & lfp information only for trials that belong to the subset of trials defined in <trial types>.
- A trial type is any positive integer smaller than 30,000. Values above 30,000 are reserved for TTL trials that are automatically generated.
- You can further define whether to average a trial or not by its outcome. Outcomes can correspond to correct/incorrect, or any other response the animal makes.
- Outcomes can be any positive integer.
- Color optional, and given by R,G,B, ranging between 0 and 255.
- Default visibility is optional. Visibility value is either 0 or 1, and will determine if this condition is visible by default, or whether the user needs to click on the GUI to make it appear.
- Conditions may have a optional 2D spatial position. This is useful when visual stimulation is delivered at a specific location on the monitor (i.e., saccade to a specific location trials).
- Conditions may be grouped together for easier visualization. For example, you might group a bunch of trials types with no stimulation together and compare them to trials that do get stimulation. Visualization in the future will be able to display them as two curves / rose plots / ...
- TrialStart <trial type, optional>
- This command indicates that a trial has started. You can send (optionally) the trial type here as well. Otherwise, use the TrialType command
- TrialType <trial type>
- This command sends the trial type information of the current running trial.
- TrialAlign
- Spikes & LFP can be aligned not only to trial onset, but to other events (i.e., saccades, lever presses, etc). Use this command to indicate that firing rate should be aligned to the specific time point when this command was arrived.
- If TrialAlign command is not sent for a trial, the default is to average things relative to TrialStart
- TrialOutcome <trial outcome>
- This commands indicate the outcome of the trial.
- TrialEnd <trial outcome, optional>
- This indicates that a trial has finished, with the optional parameter that indicates what was the outcome.
- This indicates that a trial has finished, with the optional parameter that indicates what was the outcome.
...