Experiment(){
Context(){
AssignmentGroup(){
SubjectCode = "";
TrialFactor = 1000;
}
Session(){
Message(){
Text = "MediaPlayer triggered by a serial input signal.pxd";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 500;
}
/* 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;
}
}
SessionEnd(){
/* Close the serial communication device. */
SerialCommunicationDeviceControl(){
CommPort = "COM1";
CommandCode = de.pxlab.pxl.SerialCommunicationDeviceControlCodes.CLOSE_XBOX;
}
Message(){
Text = "E N D";
Duration = 500;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
}
Trial(){
MediaPlayerOpen(){
Directory = "C:/Zeitmessung";
FileName = "blackwhiteblack5.mpg";
FastStart = 1;
}
Message:Start(){
Text = "Press SPACE bar to start the movie";
FontSize = 32;
LocationY = -200;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
}
MediaPlayerStart(){
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
}
MediaPlayerSync:Stop(){
Timer = de.pxlab.pxl.TimerCodes.STOP_MEDIA_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial();
}
}
}
}