|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/9/2008 12:31:29 PM
Posts: 1,
Visits: 5
|
|
Hello everyone!
I am wondering if anybody knows if you can integrate different experimental conditions into one program file. That is, if there is any way there can be an option to pick a condition when you begin the experiment instead of having separate files for each condition. If anyone can be of any help we would greatly appreciate it! If anyone requires more clarification of the situation please don't hesitate to let me know.
Thank you!
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Today @ 5:01:25 PM
Posts: 336,
Visits: 897
|
|
QVCL,
One thought... Add an attribute such as "Condition" to the Startup Info of the the Experiment Object (for help on this, see the appropriate section of the Reference Guide that came with E-Prime). Then, in some script at the start of the program, use some If... Then.. Else..., or Select... Case, plus some Goto, such as
Select Case c.GetAttrib("Condition")
Case "A"
Goto LabelA
Case "B"
Goto LabelB
Case "C"
Goto LabelC
Case Else ' sanity check
MsgBox "Invalid input for Condition"
Goto LabelError
End Select
-- David McFarlane, Professional Faultfinder
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Today @ 5:01:25 PM
Posts: 336,
Visits: 897
|
|
Wow, I just cannot stand seeing that without proper indenting, let's do that again using HTML nonbreaking spaces:
Select Case c.GetAttrib("Condition")
&nbps;&nbps;Case "A"
&nbps;&nbps;&nbps;&nbps;Goto LabelA
&nbps;&nbps;Case "B"
&nbps;&nbps;&nbps;&nbps;Goto LabelB
&nbps;&nbps;Case "C"
&nbps;&nbps;&nbps;&nbps;Goto LabelC
&nbps;&nbps;Case Else ' sanity check
&nbps;&nbps;&nbps;&nbps;MsgBox "Invalid input for Condition"
&nbps;&nbps;&nbps;&nbps;Goto LabelError
End Select
Say, could someone from PST give me a clue how to post examples that obey my indenting and embedded space formatting? Thanks.
-- David McFarlane, Professional Faultfinder
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Today @ 5:01:25 PM
Posts: 336,
Visits: 897
|
|
Oops, I will keep trying this until I get it right...
Select Case c.GetAttrib("Condition")
Case "A"
Goto LabelA
Case "B"
Goto LabelB
Case "C"
Goto LabelC
Case Else ' sanity check
MsgBox "Invalid input for Condition"
Goto LabelError
End Select
-- David McFarlane, Professional Faultfinder
|
|
|
|