20890<_VersionPersist dt:dt="int">50SessionProcPsychology Software Tools, Inc. (Sara Burgess)This example illustrates how to independently turn on and off the
PST Serial Response Box lamps using E-Basic script.
An attribute is added to the TrialList (LampNum), to define lamp
position on the trial level. Next the c.GetAttrib command is used to
access the LampNum from the List in the SRBoxLampTest InLine.
Within the SRBoxLamp test InLine, the appropriate lamp is turned
on by referencing the LampNum attribute in the SRBox.Lamps
syntax.
The LampNum attribute is also used as the correct response.
At the end of the experiment, script is used to turn on a combination
of lamps.2013-08-19T16:36:46.000536870912DisplayDisplay<_VersionPersist dt:dt="int">1-164048016white1NoKeyboardKeyboard<_VersionPersist dt:dt="int">1-1101MouseMouse<_VersionPersist dt:dt="int">1-1100SoundSound<_VersionPersist dt:dt="int">1-122205016SRBOXSRBOX<_VersionPersist dt:dt="int">1-111192008000-1-10-1BlockTrialSubTrialLogLevel5LogLevel6LogLevel7LogLevel8LogLevel9LogLevel1010SubjectPlease enter the Subject Number (1-32767, 0=No Data Logging):0-1-11032767SessionPlease enter the Session Number (1-32767):0-1-11132767GroupPlease enter Subject's Group (0-32767):0001032767NamePlease enter Subject's Name:100255AgePlease enter Subject's Age (0-150):00000150SexPlease enter Subject's Sex:200malemalefemaleHandednessEnter Subject's Handedness:200leftleftrightResearcherIDPlease enter Researcher's ID:0001032767SessionProcProcedure{AA69D89A-720F-49C8-85AD-AB6E7481862E}20887<_VersionPersist dt:dt="int">1- Introduction
- BlockList
- WatchSRBoxCombo
- SRBoxLampComboOn
- Wait500
- SRBoxLampComboOff
- Goodbye
1IntroductionBlockListWatchSRBoxComboSRBoxLampComboOnWait500SRBoxLampComboOffGoodbyeGoodbyeTextDisplay{5066409B-2045-4DD3-BFA8-F2204428227E}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag030000010blackwhiteopaqueblack0centercenter100%100%centercentercentercenteryesCourier New18YesNoNoNoThank you for participating.
Goodbye!-1SRBoxLampComboOffInLine{C0D4AE5A-F84E-4D6D-BC99-2F8EA4328F7F}20887<_VersionPersist dt:dt="int">1'Turn on a combination of lamps
SRBox.Lamps ""
Wait500Wait{4EE185E2-9C17-480C-A668-D462B54BE784}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag05000010SRBoxLampComboOnInLine{2DFEDBDE-E72F-4921-80EC-36E136F370F2}20887<_VersionPersist dt:dt="int">1'Turn on a combination of lamps
SRBox.Lamps "135"
WatchSRBoxComboTextDisplay{F57F4CB0-CABB-4AE8-934E-C0C76D4A6598}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag030000010blackwhiteopaqueblack0centercenter100%100%centercentercentercenterNoCourier New18YesNoNoNoNow a combination of lamps will be turned on. Watch your SRBox...-1BlockListList{68AF1472-C547-4AE6-BBC5-8D4BCFF8C55B}20887<_VersionPersist dt:dt="int">1- BlockProc
00000001100Weight17510Nested17511Procedure175121 BlockProcBlockProcProcedure{045F41F1-2C22-424D-A062-5F565BCABB88}20887<_VersionPersist dt:dt="int">1- TrialList
1TrialListTrialListList{2D3B3925-D4C9-4629-9818-45B9D7DAD419}20887<_VersionPersist dt:dt="int">1LampNum1- TrialProc
10000001100Weight17510Nested17511Procedure17512LampNum0?751881 TrialProc 11 TrialProc 21 TrialProc 31 TrialProc 41 TrialProc 5TrialProcProcedure{D9E870B7-6A3F-4F13-8342-092E6ACC19C6}20887<_VersionPersist dt:dt="int">1- WatchSRBox
- SRBoxLampOn
- Wait501
- SRBoxLampOff
- Probe
- Feedback
1WatchSRBoxSRBoxLampOnWait501SRBoxLampOffProbeFeedbackWatchSRBoxTextDisplay{50606F98-1C1B-485C-865C-2B779CDC2E87}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag020000010blackwhiteopaqueblack0centercenter100%100%centercentercentercenterNoCourier New18YesNoNoNoWatch your Serial Response Box... -1SRBoxLampOnInLine{66E83583-0283-4C89-BC3C-BF881109D7DE}20887<_VersionPersist dt:dt="int">1'Turn on each lamp by independently
SRBox.Lamps c.GetAttrib("LampNum")
Wait501Wait{3155F1A8-E9CE-4558-9F0F-73D02AEE51B9}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag05000010SRBoxLampOffInLine{AE33778B-6B5F-41B0-AB9E-76A3CE939961}20887<_VersionPersist dt:dt="int">1'Turn off all lamps.
SRBox.Lamps ""
ProbeTextDisplay{1EDBE02A-C1FB-4C15-8A8E-62EE411B380F}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag0-10010blackwhiteopaqueblack0centercenter100%100%centercentercentercenterNoCourier New18YesNoNoNoPress the button on the SRBox that corresponds to the lamp that was lit up.-1FeedbackFeedbackDisplay{098DA7E7-AD2B-4E2D-86FD-82B47D90AAFC}201025<_VersionPersist dt:dt="int">15OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag0Correctwhiteopaqueblack0centercenter100%100%centercenterNoYesSlideTextText1bluewhitetransparent0blackcenter20%75%10%centercenterleftcenterCourier New18YesNoNoNoCorrect!-1SlideTextText2bluewhitetransparent0blackcenter35%75%10%centercenterleftcenterCourier New18YesNoNoNo@RT Seconds Response Time-1SlideTextText3bluewhitetransparent0blackcenter45%75%10%centercenterleftcenterCourier New18YesNoNoNo@ACC.MEAN Average Percent Correct-1Incorrectwhiteopaqueblack0centercenter100%100%centercenterNoYesSlideTextText1redwhitetransparent0blackcenter20%75%10%centercenterleftcenterCourier New18YesNoNoNoIncorrect-1SlideTextText2redwhitetransparent0blackcenter35%75%10%centercenterleftcenterCourier New18YesNoNoNo@RT Seconds Response Time-1SlideTextText3redwhitetransparent0blackcenter45%75%10%centercenterleftcenterCourier New18YesNoNoNo@ACC.MEAN Average Percent Correct-1NoResponsewhiteopaqueblack0centercenter100%100%centercenterNoYesSlideTextText1redwhitetransparent0blackcenter20%75%10%centercenterleftcenterCourier New18YesNoNoNoNo response detected.-1Pendingwhiteopaqueblack0centercenter100%100%centercenterNoYes15000010011111.0Percent1000.0###0.0001000.0###0.0001000.0###0.000ProbeIntroductionTextDisplay{383027DC-017C-4F09-94AB-5948B01C0B8A}20887<_VersionPersist dt:dt="int">1OnsetDelay0OnsetTime0DurationError0PreRelease0Duration0StartTime0OffsetTime0FinishTime0TimingMode0CustomOnsetTime0CustomOffsetTime0ActionDelay0ActionTime0TargetOffsetTime0TargetOnsetTime0OffsetDelay0RTTime0ACC0RT0RESP0CRESP0Tag0-10010blackwhiteopaqueblack0centercenter100%100%centercentercentercenterNoCourier New18YesNoNoNoWelcome to the experiment.
You will see a lamp on the Serial Response Box light up. Your task is to press the button underneath the corresponding lamp.
Press any button on the SRBox to continue.-1