Experiment(){
Context(){
AssignmentGroup(){
SubjectCode = "pxlab";
TrialFactor = 1000;
}
Session(){
/* This opens the external control box connected to the serial communication port and enables external On, Off, and Trigger signals. It also enables externl control box response events. */
SerialCommunicationDeviceControl(){
/* The serial port name. */
CommPort = "COM1";
/* The command code for opening the external control box connected to the serial port. */
CommandCode = de.pxlab.pxl.SerialCommunicationDeviceControlCodes.OPEN_XBOX;
}
Message(){
Text = "Start!";
Timer = de.pxlab.pxl.TimerCodes.RELEASE_RESPONSE_TIMER;
}
}
SessionEnd(){
/* Close the serial communication device. */
SerialCommunicationDeviceControl(){
CommPort = "COM1";
CommandCode = de.pxlab.pxl.SerialCommunicationDeviceControlCodes.CLOSE_XBOX;
}
Message(){
Text = "E N D E";
Duration = 500;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
}
Trial(){
ClearScreen:A(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 200;
}
SimpleBar(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Height = screenHeight();
Width = 200;
Duration = 10;
Color = White;
}
ClearScreen:B(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 10;
}
SyntheticSound(){
Timer = de.pxlab.pxl.TimerCodes.START_MEDIA_TIMER;
Gain = 1;
Duration = 50;
Channels = 1;
QuietLead = 0;
Envelope = de.pxlab.pxl.SoundEnvelopeCodes.CONSTANT;
Wave = de.pxlab.pxl.SoundWaveCodes.PURE_TONE;
WavePars = 1000;
}
ExternalSignalOn:A(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 10;
Code = 1;
}
ExternalSignalOff:A(){
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
Code = 1;
}
ClearScreen:C(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 200;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial();
}
}
}
}