[Addressing some old posts here, probably too late to do any good ...]
Wow, that is an interesting thing to attempt. Offhand, I think your "No
Repeats on Consecutive Trials" code may be trying to access attributes
of TrialList before TrialList has resolved the Filename and loaded its
attributes. And I cannot think of a way around that. I think TrialList
will not resolve Filename and load its attributes until TrialList runs,
but of course you want to use the program code to reorganize the
sequence of TrialList *before* it runs.
Perhaps you do not need to load your TrialList from external files. I
cannot think of when I have used external file loading myself, I always
find other ways to programmatically use alternate Lists, usually by
having all the Lists defined directly in E-Prime. Alternatively, you
could use InLine code to load your attributes from the files directly
into arrays (which the program code does anyway), and then use InLine
code to populate or construct the TrialList.
BTW, the algorithm used in the "No Repeats on Consecutive Trials" is a
particularly inelegant and inefficient approach, essentially a sort of
reverse bogosort (see
en.wikipedia.org/wiki/Bogosort).
-- David McFarlane
On 2022-04-02 Sat 9:29 PM, Mike wrote:
> Hello,
>
> I have a TrialList that is loaded from text files. The name of this text
> file is not hard-coded into the Filename field in E-Prime, but instead
> contains a bracketed name of an attribute that is defined in a
> higher-order BlockList. For example, BlockList contains a "rule"
> attribute with levels 1 and 2. Within the TrialList Filename field is
> list[rule].txt.
>
> All was working well until I tried to combine this setup with the inline
> script within the experiment on the E-Prime Samples page here: No
> Repeats on Consecutive Trials (Individual Trial) [30028] – PST Product
> Service & Support (
pstnet.com)
> <
https://urldefense.com/v3/__https://support.pstnet.com/hc/en-us/articles/115001741928-No-Repeats-on-Consecutive-Trials-Individual-Trial-30028-__;!!HXCxUKc!nK3GPsl7UaOvQ9fX4kzp0yHO6O0DAPOwRagrzkDhhrTp9IafFoRFQ8iuKVapdWzx$>.