Experiment(){
Context(){
AssignmentGroup(){
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(){
ExternalSignalOn:A(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 5;
Code = 1;
}
ExternalSignalOff:A(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 5;
Code = 1;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial();
}
}
}
}