Read out certain levels only

David McFarlane mcfarla9 at msu.edu
Tue May 11 13:41:13 UTC 2010


Vera,

[Took me awhile to get to this because I had other business to attend 
to and I wanted to write this up properly.]

As to "counterbalancing" on attributes other than Group, Subject, and 
Session...  As I hinted in the thread at 
http://groups.google.com/group/e-prime/browse_thread/thread/26d2e1e83c6a09bb 
, although the E-Studio GUI allows options only for Subject, Session, 
and Group, you may "counterbalance" on any other attribute simply 
through a proper application of inline code before the List runs, e.g.,

Set List.Deletion = PickOne(c.GetAttrib("AnyAttribYouLike"))

In fact, List.Order does not have a "Counterbalance" option -- 
instead, Counterbalance in E-Studio just generates a combination of 
settings that makes EP pick a numbered row from the List at runtime 
and run just that, once.  The best way to see this is to use 
Counterbalance in E-Studio and then look at the generated code (and 
IMO if you do not care to look at or understand generated E-Basic 
code, then you should leave this work to somebody else who 
does).  For the record, and to spare you the trouble, here is an 
example of the relevant generated code from the InitObjects subroutine:

Set List.Order = New SequentialOrder
Set List.Deletion = PickOne(c.GetAttrib("Subject"))
List.ResetEveryRun = True
Set List.TerminateCondition = Samples(1)
Set List.ResetCondition = Samples(1)

-- David McFarlane, Professional Faultfinder


At 5/6/2010 08:31 AM Thursday, you wrote:
>Ok, got a bit further (but it's still not working fine):
>
>I added this inline:
>
>If (NewTriggerValue > 0) AND (NewTriggerValue < 7) Then
>         Set DesignList.Deletion = PickOne(c.GetAttrib("TriggerPos") = "1")
>ElseIf NewTriggerValue = 0 Then
>         Set DesignList.Deletion = PickOne(c.GetAttrib("TriggerPos") = "0")
>End If
>
>It's based on something David once wrote concerning counterbalancing
>(it would have been so much easier if E-Prime could just
>counterbalance for any attribute and not just Group, Subject and
>Session).

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list