<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Expyriment — Forum</title>
        <link>https://forum.cogsci.nl/</link>
        <pubDate>Mon, 15 Jun 2026 20:23:41 +0000</pubDate>
        <language>en</language>
            <description>Expyriment — Forum</description>
    <atom:link href="https://forum.cogsci.nl/categories/expyriment/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Timing of expyriment: it is pretty good!</title>
        <link>https://forum.cogsci.nl/discussion/7945/timing-of-expyriment-it-is-pretty-good</link>
        <pubDate>Fri, 22 Apr 2022 17:13:21 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>chrplr</dc:creator>
        <guid isPermaLink="false">7945@/discussions</guid>
        <description><![CDATA[<p>I removed the dust from my Blackbox toolkit and  ran a quick timing evaluation of expyriment, similar to the one performed in the &quot;Mega-Study&quot;.</p><p>I find that expyriment performs quite well when programmed correctly (see the attached file)</p><div data-embedjson="{&quot;url&quot;:&quot;https:\/\/forum.cogsci.nl\/uploads\/458\/IHGKFOMUEEIR.zip&quot;,&quot;name&quot;:&quot;expyriment-timing-performance-a-first-attempt.zip&quot;,&quot;type&quot;:&quot;application\/zip&quot;,&quot;size&quot;:138515,&quot;embedType&quot;:&quot;file&quot;}">
    <a rel="nofollow" href="https://forum.cogsci.nl/uploads/458/IHGKFOMUEEIR.zip" download="" aria-label="expyriment-timing-performance-a-first-attempt.zip">
        expyriment-timing-performance-a-first-attempt.zip
    </a>
</div><p>More raw data (.e.g. expeyrment event and data .xpe files) are available at <a href="https://github.com/chrplr/bbtkv2_python/tree/main/tests/expyriment" rel="nofollow">https://github.com/chrplr/bbtkv2_python/tree/main/tests/expyriment</a></p><p>I intend to perform a more thorough investigation of timing when I find the time.</p><p>But this is enough to show that the Mega Study is quite misleading.</p>]]>
        </description>
    </item>
    <item>
        <title>error test_suit()</title>
        <link>https://forum.cogsci.nl/discussion/5413/error-test-suit</link>
        <pubDate>Mon, 09 Sep 2019 14:56:34 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>ssalzgeber</dc:creator>
        <guid isPermaLink="false">5413@/discussions</guid>
        <description><![CDATA[<p>Hi everyone,</p><p>I get this error message when I put the expyriment.control.run_test_suit() at the beginning of the experiment: </p><p><br /></p><p>File &quot;experiment.py&quot;, line 11, in &lt;module&gt;</p><p>&nbsp;&nbsp;control.run_test_suite()</p><p>&nbsp;File &quot;C:\Users\sarah\Anaconda3\lib\site-packages\expyriment\control\_test_suite.py&quot;, line 539, in run_test_suite</p><p>&nbsp;&nbsp;from ..design import extras as _test1</p><p>&nbsp;File &quot;C:\Users\sarah\Anaconda3\lib\site-packages\expyriment\design\extras\__init__.py&quot;, line 20, in &lt;module&gt;</p><p>&nbsp;&nbsp;from . import defaults</p><p>&nbsp;File &quot;C:\Users\sarah\Anaconda3\lib\site-packages\expyriment\design\extras\defaults.py&quot;, line 26, in &lt;module&gt;</p><p>&nbsp;&nbsp;exec(_defaults)</p><p>&nbsp;File &quot;&lt;string&gt;&quot;, line 1</p><p>SyntaxError: (unicode error) &#39;unicodeescape&#39; codec can&#39;t decode bytes in position 2-3: truncated \UXXXXXXXX escape</p><p><br /></p><p>I use the pathlib libary for path handling, since I have a lot of stimuli I store only the path, as a string, in each trial - as a trial_factor (when building the design) -   could this lead to the problem?</p>]]>
        </description>
    </item>
    <item>
        <title>Present a target word and ask the participant to enter as many words as possible in a given time.</title>
        <link>https://forum.cogsci.nl/discussion/8227/present-a-target-word-and-ask-the-participant-to-enter-as-many-words-as-possible-in-a-given-time</link>
        <pubDate>Wed, 26 Oct 2022 23:59:17 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Cognitionguy</dc:creator>
        <guid isPermaLink="false">8227@/discussions</guid>
        <description><![CDATA[<p>Hello people</p><p>I am doing a project work on creativity and I am using the Free Association Task.&nbsp;</p><p>A word is presented (20 words in total) and the participant has to write down as many words as possible that come to mind for the presented word.&nbsp;</p><p>I guess the type form_text_input is already in the right direction, but the participant should not be able to click further, but should actually stay with the task for the complete minute. That means, he should not get the possibility to click to the next word.&nbsp;</p><p>Is it possible to change the properties of form_text_input or is that not possible?</p><p>Many greetings,</p><p>Cognitionguy</p>]]>
        </description>
    </item>
    <item>
        <title>Problem during initializing</title>
        <link>https://forum.cogsci.nl/discussion/6430/problem-during-initializing</link>
        <pubDate>Thu, 27 Aug 2020 10:21:29 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Helena_90</dc:creator>
        <guid isPermaLink="false">6430@/discussions</guid>
        <description><![CDATA[<p>Hi!</p><p>I am running into a problem while initializing expyriment. </p><p>I get this error:</p><pre spellcheck="false">&nbsp;File &quot;S:/.....y&quot;, line 20, in &lt;module&gt; exp = control.initialize()
&nbsp;File &quot;S:\....\venv\lib\site-packages\expyriment\control\_experiment_control.py&quot;, line 438, in initialize no_frame=defaults.window_no_frame)
&nbsp;File &quot;S:\p....\venv\lib\site-packages\expyriment\io\_screen.py&quot;, line 123, in init if &quot;ARB_texture_non_power_of_two&quot; not in ogl_extensions: TypeError: a bytes-like object is required, not &#39;str&#39;
</pre><p> </p><pre spellcheck="false">from expyriment import control, stimuli, design, misc, io
control.set_develop_mode(False)&nbsp;
.....
exp = control.initialize()
</pre><p><br /></p><p>I have also tried adding this but I still get the same error:</p><p><code spellcheck="false">control.defaults.window_no_frame = True</code></p><p><br /></p><p>The script was running perfectly on my computer and now I am trying to run it through remote desktop and I get the error.</p><p><br /></p><p>Thank you!</p>]]>
        </description>
    </item>
    <item>
        <title>Measuring the Audio Latency</title>
        <link>https://forum.cogsci.nl/discussion/7947/measuring-the-audio-latency</link>
        <pubDate>Fri, 22 Apr 2022 20:42:09 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>anapinho</dc:creator>
        <guid isPermaLink="false">7947@/discussions</guid>
        <description><![CDATA[<p>Hello,</p><p>I&#39;d like to measure the Audio Latency of a beep tone on my device while running Expyriment and I&#39;d like to know what the software you used on the description in this page is: <a href="https://docs.expyriment.org/Timing.html" rel="nofollow">https://docs.expyriment.org/Timing.html</a></p><p>Additionally and just to confirm: in this description (Audio section), the latency measured refers to a sound played in Expyriment, doesn&#39;t it?</p><p>Thank you in advance.</p><p>Best,</p><p>Ana Lu&iacute;sa</p>]]>
        </description>
    </item>
    <item>
        <title>Sending out a marker on key-press</title>
        <link>https://forum.cogsci.nl/discussion/7269/sending-out-a-marker-on-key-press</link>
        <pubDate>Mon, 21 Jun 2021 12:42:33 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>JJT</dc:creator>
        <guid isPermaLink="false">7269@/discussions</guid>
        <description><![CDATA[<p>Hi!</p><p>I have the following snippet of code: </p><pre spellcheck="false">experiment.clock.reset_stopwatch()
key, rt = experiment.keyboard.wait(keys=[left_resp,
                                         right_resp],
                                   duration=duration_stimulus)
experiment.clock.wait(duration_stimulus - interval_tone - experiment.clock.stopwatch_time)
</pre><p>What I want is to send out a marker, at the time that a response (keypress) is made. However, the duration of the stimulus is fixed (1000ms), so sending a marker after the keyboard.wait function is not possible! Do you have an idea how to do this?</p>]]>
        </description>
    </item>
    <item>
        <title>running an expy experiment online</title>
        <link>https://forum.cogsci.nl/discussion/7294/running-an-expy-experiment-online</link>
        <pubDate>Thu, 01 Jul 2021 20:42:37 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>blloyd</dc:creator>
        <guid isPermaLink="false">7294@/discussions</guid>
        <description><![CDATA[<p>Hi there, I was wondering if there was any platforms (like Pavlovia for example) that would enable me to run an expyriment experiment online? </p><p>Thanks in advance for your help! </p><p>Beth</p>]]>
        </description>
    </item>
    <item>
        <title>Running experiment in external browser</title>
        <link>https://forum.cogsci.nl/discussion/7342/running-experiment-in-external-browser</link>
        <pubDate>Fri, 23 Jul 2021 07:57:38 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Pallavi</dc:creator>
        <guid isPermaLink="false">7342@/discussions</guid>
        <description><![CDATA[<p>Hello all,</p><p>I am new in developing experimental designs in open sesame. I have included form_text_input item in my study but it is not running in JATOS external browser. The error is coming. Can anyone explain any other way as to how can I add this item and run it.</p>]]>
        </description>
    </item>
    <item>
        <title>Correct response n-back task</title>
        <link>https://forum.cogsci.nl/discussion/7252/correct-response-n-back-task</link>
        <pubDate>Thu, 10 Jun 2021 08:54:05 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Alba</dc:creator>
        <guid isPermaLink="false">7252@/discussions</guid>
        <description><![CDATA[<p>Hello,</p><p><br /></p><p>We are creating an experiment (n-back task) in OpenSesame in which we want to present symbols (as targets) alternated with images (as distractors). Participant has to indicate if the symbol is the same or different from the one presented twice before (2-back) by keyboard response. We have randomized the task symbols, but we are having difficulties in coding correct and incorrect responses (the answer is correct if the symbol showed at that moment matches with the one displayed twice before).</p><p><br /></p><p>We used the following code for correct_response (var.target is the variable in the loop that contains the list of symbols):&nbsp;</p><p><br /></p><pre spellcheck="false">target = var.target
for i in range(len(target)):
&nbsp;&nbsp;		if target[i] != target[i-2]:
&nbsp;&nbsp;&nbsp;&nbsp;			var.correct_response = &#39;left&#39;
&nbsp;&nbsp;		elif target[i] == target[i-2]:
&nbsp;&nbsp;&nbsp;&nbsp;			var.correct_response = &#39;right&#39;
&nbsp;&nbsp;		else:
&nbsp;&nbsp;&nbsp;&nbsp;			raise ValueError(&#39;Invalid answer&#39;)
</pre><p><br /></p><p>Unfortunately, using this code the program always recognizes as the correct response &quot;left&quot;. Any ideas to solve this problem?</p><p><br /></p><p>Thanks in advance for your help!&nbsp;&nbsp;</p><p><br /></p><p>Kind regards.</p>]]>
        </description>
    </item>
    <item>
        <title>Building experiment with videos</title>
        <link>https://forum.cogsci.nl/discussion/4403/building-experiment-with-videos</link>
        <pubDate>Fri, 14 Sep 2018 10:46:31 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Jo_ALV</dc:creator>
        <guid isPermaLink="false">4403@/discussions</guid>
        <description><![CDATA[<p>Hey everyone,</p>

<p>Following a recent mail exchange with Florian, I tranfer my issues to the forum to get some insight from the community.</p>

<p>For my first experiment I need to design an experiment using moving stimuli and I have to implement an expending or concentric movement on a circle (increase and decreasing the diameter of the circle in a way) and on annular gratings (Gabor Patch). So we conclude that it would be easier to just create videos of the stimuli and to present them.</p>

<p>So i went over the begginer's tutorial and tried to follow this example to create a very simple, 1 block, 4 stimuli experiment. I also follow the instruction about playing videos but I'm unsure on how to build and on how to code this efficiently. I coded the following experiment this morning but only return an error during the preloading of the video.</p>

<p>Anyway, I'll join what I coded so we can share thoughts and ways to improve things so that I can learn to efficiently code experiments in the future.</p>

<p>`import expyriment</p>

<p>exp = expyriment.design.Experiment(name="First Experiment")<br />
expyriment.control.initialize(exp)</p>

<p>block_one = expyriment.design.Block(name="Block_1")</p>

<p>trial_one = expyriment.design.Trial()<br />
trial_two = expyriment.design.Trial()<br />
trial_three = expyriment.design.Trial()<br />
trial_four = expyriment.design.Trial()</p>

<p>circle_s = expyriment.stimuli.Video('Circle_S.mp4')<br />
circle_s.preload()<br />
circle_s.play()<br />
circle_s.present()<br />
video_presentation_time = exp.clock.time<br />
circle_s.wait_end()<br />
circle_s.stop()</p>

<p>circle_e = expyriment.stimuli.Video('Circle_E.mp4')<br />
circle_e.preload()<br />
circle_e.play()<br />
circle_e.present()<br />
video_presentation_time = exp.clock.time<br />
circle_e.wait_end()<br />
circle_e.stop()</p>

<p>gabor_s = expyriment.stimuli.Video('Gabor_S.mp4')<br />
gabor_s.preload()<br />
gabor_s.play()<br />
gabor_s.present()<br />
video_presentation_time = exp.clock.time<br />
gabor_s.wait_end()<br />
gabor_s.stop()</p>

<p>gabor_e = expyriment.stimuli.Video('Gabor_E.mp4')<br />
gabor_e.preloas() <br />
gabor_e.play()<br />
gabor_e.present()<br />
video_presentation_time = exp.clock.time<br />
gabor_e.wait_end()<br />
gabor_e.stop()</p>

<p>trial_one.add_stimulus(circle_s)<br />
trial_two.add_stimulus(circle_e)<br />
trial_three.add_stimulus(gabor_s)<br />
trial_four.add_stimulus(gabor_e)</p>

<p>block_one.add_trial(trial_one)<br />
block_one.add_trial(trial_two)<br />
block_one.add_trial(trial_three)<br />
block_one.add_trial(trial_four)</p>

<p>exp.add_block(block_one)</p>

<p>expyriment.control.start()<br />
for block in exp.blocks:<br />
    for trial in block.trials:<br />
        trial.stimuli[0].present()<br />
        exp.clock.wait(1000)</p>

<p>expyriment.control.end()`</p>

<p>Also; the error I get looks like :</p>

<p><code>Traceback (most recent call last):   File "test.py", line 20, in &lt;module&gt;     circle_s.preload()   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/expyriment/stimuli/_video.py", line 303, in preload     videorenderfunc=self._update_surface)   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/mediadecoder/decoder.py", line 73, in __init__     if not self.load_media(mediafile, play_audio):   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/mediadecoder/decoder.py", line 162, in load_media     self.clip = VideoFileClip(mediafile, audio=play_audio)   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/moviepy/video/io/VideoFileClip.py", line 91, in __init__     fps_source=fps_source)   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/moviepy/video/io/ffmpeg_reader.py", line 33, in __init__     fps_source)   File "/home/jrdnalvs/anaconda3/envs/expyriment/lib/python3.4/site-packages/moviepy/video/io/ffmpeg_reader.py", line 243, in ffmpeg_parse_infos     is_GIF = filename.endswith('.gif') TypeError: endswith first arg must be bytes or a tuple of bytes, not str</code></p>

<p>thanks again for your time,</p>
]]>
        </description>
    </item>
    <item>
        <title>Customize the start screen</title>
        <link>https://forum.cogsci.nl/discussion/6925/customize-the-start-screen</link>
        <pubDate>Wed, 17 Feb 2021 13:49:19 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>JJT</dc:creator>
        <guid isPermaLink="false">6925@/discussions</guid>
        <description><![CDATA[<p>Hi! The start screen of expyriment asks for a subject number. Is there a possibility to add multiple input lines? For example I want to also be able to input not only the subject number but also the session as the participants will undergo two sessions.</p><p>Going even further: I would maybe even want to change the experiment based on the input. For example, by choosing the language at the start screen. This is of course also possible in other ways (e.g:</p><pre spellcheck="false">str(input(&quot;Language: &quot;))
</pre><p>However, this requires typing in the coder. It would be most neat to have it all in that start-screen, so people who aren&#39;t used to coding can use the GUI.</p><p>In short: how flexible is the start-screen and how to adapt it?</p>]]>
        </description>
    </item>
    <item>
        <title>Ending experiment after four incorrect responses</title>
        <link>https://forum.cogsci.nl/discussion/6944/ending-experiment-after-four-incorrect-responses</link>
        <pubDate>Sun, 21 Feb 2021 16:53:09 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>maizaiz</dc:creator>
        <guid isPermaLink="false">6944@/discussions</guid>
        <description><![CDATA[<p>Hello ,</p><p>how could I end the experiment for a participant if he makes 4 incorrect responses in sequence !</p><p>Thanks</p>]]>
        </description>
    </item>
    <item>
        <title>view numbers typed (e prime)</title>
        <link>https://forum.cogsci.nl/discussion/6939/view-numbers-typed-e-prime</link>
        <pubDate>Fri, 19 Feb 2021 13:42:35 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Monydg</dc:creator>
        <guid isPermaLink="false">6939@/discussions</guid>
        <description><![CDATA[<p>Hello everyone, using e prime I would need to create a slide or script (I don&rsquo;t know), which allows me to see the numbers typed by participants. For example: they think the exact number is 23, they type it with the keyboard, and the number 23 appears on the screen. Do you have any suggestions?</p>]]>
        </description>
    </item>
    <item>
        <title>odd behaviour of linked copied response items</title>
        <link>https://forum.cogsci.nl/discussion/6727/odd-behaviour-of-linked-copied-response-items</link>
        <pubDate>Wed, 09 Dec 2020 12:56:26 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>TAlexander</dc:creator>
        <guid isPermaLink="false">6727@/discussions</guid>
        <description><![CDATA[<p>Hello everybody,</p><p>I have recently noticed a strange behaviour of linked response elements (tested for OpenSesame 3.3.5). As it seems, all information about the time for items after the first one in a sequence is wrong. To illustrate the problem, I have created a example experiment (see below) and used it to collect some test data (see below), to which I will now refer. When a linked response element is reached for the first time in an experiment, everything seems to work well. But when a linked response element is reached again, it calculates e.g. the &#39;response_time&#39; incorrectly, it accumulates the time since its first use, which is easy to see in the spreadsheet, e.g. BT5 - BT7. Here an item with a timeout of 1000 ms registers a &#39;response_time&#39; of 1000 ms on the first occurrence, a &#39;response_time&#39; of 2000 ms on the second occurrence and a &#39;response_time&#39; of 3000 ms on the third occurrence in the sequence. My guess is that everything depends on the &#39;time_*item name*&#39;-variable, which for the tested response items is only updated when this item is first reached in the sequence. This is different from other items like &#39;skatchpads&#39; where the &#39;time_*item name*&#39;-variable is updated each time the specific item in the sequence is reached. This has the consequence that all time dependent calculations are corrupted.</p><p>It would be nice if someone could confirm this behaviour and tell me if it is the expected/intended behaviour or maybe a bug.</p><p>With kind regards,</p><p>Alexander</p><div data-embedjson="{&quot;url&quot;:&quot;https:\/\/forum.cogsci.nl\/uploads\/707\/84RAKF1O6KG8.osexp&quot;,&quot;name&quot;:&quot;ExampleUnexpectedFeedback.osexp&quot;,&quot;type&quot;:&quot;application\/octet-stream&quot;,&quot;size&quot;:7739,&quot;embedType&quot;:&quot;file&quot;}">
    <a rel="nofollow" href="https://forum.cogsci.nl/uploads/707/84RAKF1O6KG8.osexp" download="" aria-label="ExampleUnexpectedFeedback.osexp">
        ExampleUnexpectedFeedback.osexp
    </a>
</div><div data-embedjson="{&quot;url&quot;:&quot;https:\/\/forum.cogsci.nl\/uploads\/025\/LEIEZD3F8QOE.xlsx&quot;,&quot;name&quot;:&quot;eufb.xlsx&quot;,&quot;type&quot;:&quot;application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet&quot;,&quot;size&quot;:36499,&quot;embedType&quot;:&quot;file&quot;}">
    <a rel="nofollow" href="https://forum.cogsci.nl/uploads/025/LEIEZD3F8QOE.xlsx" download="" aria-label="eufb.xlsx">
        eufb.xlsx
    </a>
</div><p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Perform part of script if experiment quits (Escape button)</title>
        <link>https://forum.cogsci.nl/discussion/6701/perform-part-of-script-if-experiment-quits-escape-button</link>
        <pubDate>Mon, 30 Nov 2020 11:22:30 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>JJJ</dc:creator>
        <guid isPermaLink="false">6701@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I have some additional lines at the end of my script/experiment that are performed after </p><p><strong><em>control.end()</em></strong></p><p><strong><em>***do something else***</em></strong></p><p>Is there a way to ensure that this part of the code will be performed even if the Esc button is pressed during the experiment, and the program quits?</p><p>Thanks</p>]]>
        </description>
    </item>
    <item>
        <title>Online Gabor-patch generator</title>
        <link>https://forum.cogsci.nl/discussion/6367/online-gabor-patch-generator</link>
        <pubDate>Wed, 05 Aug 2020 20:52:17 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>samoni</dc:creator>
        <guid isPermaLink="false">6367@/discussions</guid>
        <description><![CDATA[<p>It seems as thought the <a href="https://www.cogsci.nl/gabor-generator" rel="nofollow">Online Gabor-patch generator</a> is not working as it should. Upon trying to generate and/or download Gabors, I get a a 404 Not Found error. Is the server down and/or are there any attempts to remedy this issue?</p><p>Also, how should I go about citing the use of this Gabor Patch Generator tool?</p>]]>
        </description>
    </item>
    <item>
        <title>Combine Task</title>
        <link>https://forum.cogsci.nl/discussion/6363/combine-task</link>
        <pubDate>Wed, 05 Aug 2020 12:43:42 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>starrk</dc:creator>
        <guid isPermaLink="false">6363@/discussions</guid>
        <description><![CDATA[<p>Hi</p><p>I am trying to develop mental workload with dual paradigm for my research. The task consist two blocks with first block using dot detection (perceptual) and the next block using n-back (cognitive). Is there any chance working this combine task using expyriment?, like how to set key response for different task (perceptual will using 1,2,3,4 key and n-back using z and m key.</p><p><br /></p><p>Thanks!!</p>]]>
        </description>
    </item>
    <item>
        <title>Randomize image position</title>
        <link>https://forum.cogsci.nl/discussion/6272/randomize-image-position</link>
        <pubDate>Mon, 29 Jun 2020 14:53:24 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>JJJ</dc:creator>
        <guid isPermaLink="false">6272@/discussions</guid>
        <description><![CDATA[<p>Hello, I am trying to present 3 images on the same screen but I&#39;d like their position on screen to be random. In that way, for example, image &#39;happy&#39; will not always be on position1 but its position will be randomized on each trial. Is there a way to present all images in all possible position combinations without hardcoding it? Thanks :)</p><pre spellcheck="false">....
position1 = (250,0)
position2 = (0,0)
position3 = (-250,0)
#define and preload stimuli
happy = stimuli.Picture(&quot;images\happy.png&quot;, position=position1)
sad = stimuli.Picture(&quot;images\sad.png&quot;, position=position2)
angry = stimuli.Picture(&quot;images\angry.png&quot;, position=position3)
....
﻿
﻿#present stimuli
happy.present(update=False)
sad.present(update=False, clear=False)
angry.present(clear=False)
....
</pre><p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Video stimulus on android.</title>
        <link>https://forum.cogsci.nl/discussion/5823/video-stimulus-on-android</link>
        <pubDate>Fri, 28 Feb 2020 14:05:51 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>henri</dc:creator>
        <guid isPermaLink="false">5823@/discussions</guid>
        <description><![CDATA[<p>Hello</p><p>I have a quick question: is it possible to show videos using the expyriment android runtime? It is very easy to do it with expyriment on my laptop but it doesn&#39;t work on my tablet.</p><p>I assume my installation on my android tab is ok because I can run basic examples without any problems. And before sending lines of codes to see if I made any mistake, I wanted to be sure first that it was possible.</p><p>Thanks a lot for your help.</p><p>Henri</p>]]>
        </description>
    </item>
    <item>
        <title>How to read csv file on Anriod device</title>
        <link>https://forum.cogsci.nl/discussion/5704/how-to-read-csv-file-on-anriod-device</link>
        <pubDate>Sat, 11 Jan 2020 03:17:33 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Ayolee</dc:creator>
        <guid isPermaLink="false">5704@/discussions</guid>
        <description><![CDATA[<p>Hello </p><p>I would like use a csv file.But when I use the &quot;import csv&quot;,it doesn&#39;t work on Anriod.Is there a simple way to read a csv file on Anriod device?</p><p>Thanks!</p>]]>
        </description>
    </item>
    <item>
        <title>How to set stimuli transparency</title>
        <link>https://forum.cogsci.nl/discussion/5696/how-to-set-stimuli-transparency</link>
        <pubDate>Wed, 08 Jan 2020 21:59:59 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>bartekkroczek</dc:creator>
        <guid isPermaLink="false">5696@/discussions</guid>
        <description><![CDATA[<p>Hello everyone,</p><p>I&#39;m looking for a way of changing transparency (changing alpha value) of a given stimuli. I tried with extended Color syntax (r,g,b,a) like in pygame, but it doesn&#39;t work. API documentation also remind silent. There&#39;s an cannonical way of dealing with transparency in Expyriment?</p><p><br /></p><p>Thank You in advance!</p>]]>
        </description>
    </item>
    <item>
        <title>Recording audio files as response</title>
        <link>https://forum.cogsci.nl/discussion/5633/recording-audio-files-as-response</link>
        <pubDate>Wed, 04 Dec 2019 14:05:14 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>j3r3my</dc:creator>
        <guid isPermaLink="false">5633@/discussions</guid>
        <description><![CDATA[<p>Hello, </p><p>I was wondering whether it was possible to record audio as responses from the participants in an experiment? Could you give me some advice please. Should I use other libraries such as sound device  ? </p><p>Thanks in advance. </p><p>J&eacute;r&eacute;my</p>]]>
        </description>
    </item>
    <item>
        <title>10 years of Expyriment; Version 0.10 released</title>
        <link>https://forum.cogsci.nl/discussion/5552/10-years-of-expyriment-version-0-10-released</link>
        <pubDate>Thu, 31 Oct 2019 08:45:22 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>oliver</dc:creator>
        <guid isPermaLink="false">5552@/discussions</guid>
        <description><![CDATA[<p><strong>It&#39;s the 10th anniversary of Expyriment! </strong></p><p>To celebrate this, we released <strong>Expyriment 0.10</strong>!</p><p>Read all about it at <a href="https://www.expyriment.org/10-years/" rel="nofollow">https://www.expyriment.org/10-years/</a>.</p><p>The new release includes many new features as well as important changes and bug fixes: <a href="https://github.com/expyriment/expyriment/releases" rel="nofollow">https://github.com/expyriment/expyriment/releases</a></p><p> For installation instructions, please see <a href="http://docs.expyriment.org/Installation.html" rel="nofollow">http://docs.expyriment.org/Installation.html</a>.&nbsp;</p>]]>
        </description>
    </item>
    <item>
        <title>Delay the instruction</title>
        <link>https://forum.cogsci.nl/discussion/5563/delay-the-instruction</link>
        <pubDate>Sat, 02 Nov 2019 14:45:09 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Tanto</dc:creator>
        <guid isPermaLink="false">5563@/discussions</guid>
        <description><![CDATA[<p>Hi.I want to know, if this possible to delay the instruction?. I use the expyriment.stimuli.TextScreen to present the stimuli. I am intended to make dual instruction (visual and auditory) but  I want delay both of them with sequence (visual delay 2 ms, but not the auditory and vice versa). Thanks and congratulation for Expyriment 10th anniversary guys!!. ?</p>]]>
        </description>
    </item>
    <item>
        <title>Use Expyriment script on Android devices</title>
        <link>https://forum.cogsci.nl/discussion/5461/use-expyriment-script-on-android-devices</link>
        <pubDate>Fri, 20 Sep 2019 12:27:52 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>vescovi74</dc:creator>
        <guid isPermaLink="false">5461@/discussions</guid>
        <description><![CDATA[<p>I would like use simple Scripts, made with Expyriment, for visual stimuli presentations and answer collections on a samsung galaxy Tab S2 (android 7.0). But I have problems when I try to run them. The example experiments &quot;line-bisection.py&quot; works correctly but if I only add the drawing of a circle or the use of circular (instead of rectangular) keys the program no longer works. Can you tell me what is the problem or what I&nbsp;wrong? There are limitations on the Python/Expyriment commands that are recognized during the execution of experiments in android. Thank you.</p>]]>
        </description>
    </item>
    <item>
        <title>Experiment with audio stimuli</title>
        <link>https://forum.cogsci.nl/discussion/5474/experiment-with-audio-stimuli</link>
        <pubDate>Wed, 25 Sep 2019 13:59:16 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>FERNANDA</dc:creator>
        <guid isPermaLink="false">5474@/discussions</guid>
        <description><![CDATA[<p>Hello, i am new using the program. I have seen videos, but i am not sure how i can present audio stimuli by randomly selecting them from a folder.</p><p>The idea is to present many audio modules from a folder and as they appear the person write their answer (free text). </p><p>Thank you</p>]]>
        </description>
    </item>
    <item>
        <title>test suite results</title>
        <link>https://forum.cogsci.nl/discussion/5459/test-suite-results</link>
        <pubDate>Fri, 20 Sep 2019 09:27:44 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>ssalzgeber</dc:creator>
        <guid isPermaLink="false">5459@/discussions</guid>
        <description><![CDATA[<p>Hello everyone,</p><p>I tried the expyriment test.suite on three different operating systems (Windows 10, unbuntu 18.04, and a Mac version) and I got visual_timing_inaccuracy of 7ms and a variable timing delay of &gt;=95% on all systems. When we tried the Open Sesame test suite with the psychopy backend we had (on the Mac) a 0ms inaccuracy... </p><p>Here is the whole protocol of the test on the Linux computer: (had to copy and paste since I couldn&#39;t upldoad the file - deleted the opengl extension and the actual timing - if needed can copy below)</p><p>hardware_audio_card:			HDA-Intel - HDA Intel PCH</p><p>hardware_cpu_architecture:		x86_64</p><p>hardware_cpu_details:			Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz</p><p>hardware_cpu_type:			x86_64</p><p>hardware_disk_space_free:		858079 MB</p><p>hardware_disk_space_total:		930177 MB</p><p>hardware_internet_connection:		Yes</p><p>hardware_memory_free:			30845 MB</p><p>hardware_memory_total:			32045 MB</p><p>hardware_ports_parallel:		[&#39;parport0&#39;]</p><p>hardware_ports_parallel_driver:		pyparallel</p><p>hardware_ports_serial:			[&lt;serial.tools.list_ports_linux.SysFS object at 0x7ff85a40b630&gt;, &lt;serial.tools.list_ports_linux.SysFS object at 0x7ff85a416ef0&gt;, &lt;serial.tools.list_ports_linux.SysFS object at 0x7ff85a416dd8&gt;]</p><p>hardware_video_card:			</p><p>os_architecture:			64bit</p><p>os_details:				XFCE, xubuntu</p><p>os_name:				Ubuntu</p><p>os_platform:				Linux</p><p>os_release:				5.0.0-27-generic</p><p>os_version:				18.04</p><p>python_expyriment_build_date:		Thu Mar 9 13:48:59 2017 +0100</p><p>python_expyriment_revision:		c4963ac</p><p>python_expyriment_version:		0.9.0</p><p>python_mediadecoder_version:		</p><p>python_numpy_version:			1.17.2</p><p>python_pil_version:			6.1.0</p><p>python_pygame_version:			1.9.6</p><p>python_pyopengl_version:		3.1.0</p><p>python_pyparallel_version:		0.3</p><p>python_pyserial_version:		3.4</p><p>python_sounddevice_version:		0.3.13</p><p>python_version:				3.6.8</p><p>settings_folder:			None</p><p>testsuite_visual_flipping_user:		1</p><p>testsuite_visual_opengl:		2</p><p>testsuite_visual_opengl_renderer:	b&#39;Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) &#39;</p><p>testsuite_visual_opengl_vendor:		b&#39;Intel Open Source Technology Center&#39;</p><p>testsuite_visual_opengl_version:	b&#39;3.0 Mesa 19.0.8&#39;</p><p>testsuite_visual_pygame_driver:		x11</p><p>testsuite_visual_pygame_screensize:	(2944, 1080)</p><p>testsuite_visual_sync_refresh_rate:	61.0 Hz</p><p>testsuite_visual_timing_actual:		[#deleted cause rounded values below in timing_todo]</p><p>testsuite_visual_timing_delay_histogram:	{0: 180}</p><p>testsuite_visual_timing_delayed:	95.0 %</p><p>testsuite_visual_timing_inaccuracy:	7 ms</p><p>testsuite_visual_timing_todo:		[46, 49, 46, 15, 17, 32, 23, 58, 8, 16, 18, 11, 8, 39, 31, 6, 13, 48, 0, 3, 19, 3, 42, 30, 20, 2, 58, 48, 36, 19, 55, 48, 35, 26, 44, 22, 29, 31, 36, 50, 13, 43, 54, 27, 37, 43, 39, 38, 55, 41, 1, 42, 12, 22, 53, 41, 18, 8, 5, 40, 52, 3, 15, 6, 17, 29, 58, 7, 9, 33, 32, 36, 30, 57, 45, 45, 47, 44, 35, 46, 13, 27, 7, 34, 15, 40, 53, 44, 17, 14, 16, 50, 56, 57, 49, 12, 7, 14, 5, 55, 38, 42, 25, 23, 37, 33, 38, 24, 4, 26, 14, 32, 45, 12, 0, 52, 20, 24, 10, 6, 51, 51, 10, 25, 21, 21, 33, 34, 20, 5, 47, 49, 26, 54, 22, 11, 28, 47, 10, 16, 51, 59, 31, 24, 4, 37, 54, 28, 59, 53, 39, 56, 9, 35, 27, 59, 0, 40, 4, 21, 2, 1, 57, 23, 29, 56, 43, 11, 9, 19, 18, 2, 50, 25, 1, 28, 34, 41, 30, 52]</p><p><br /></p><p><br /></p><p>My questions: I don&#39;t really understand the results and what effects them - the explanation of within the documentations don&#39;t really help, since they only state what the output &quot;visual_timing_inaccuracy&quot; tests but not what can cause this value to be good (green - 0ms) or bad or what to do when it is bad) I read somewhere that the graphics card can cause a inaccuracy - all three systems have an internal graphics card, but that would not explain why we got a 0ms inaccuracy when using the psychopy backend within open sesame?</p><p>Can someone help me interpret the results and possible causes for the difference? My experiment is finished in expyriment but with these test results we cannot trust it...</p><p>Thank you!</p>]]>
        </description>
    </item>
    <item>
        <title>creating nested blocks and trials</title>
        <link>https://forum.cogsci.nl/discussion/5400/creating-nested-blocks-and-trials</link>
        <pubDate>Thu, 05 Sep 2019 11:36:32 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>ssalzgeber</dc:creator>
        <guid isPermaLink="false">5400@/discussions</guid>
        <description><![CDATA[<p>Hello everyone, </p><p>I&#39;ve been staring at this code for too long and don&#39;t seem to find the problem to the error messge: &#39;Block&#39; object has no attribute &#39;trials&#39; </p><p>The problem must lie in the design - when I build the hierarchy - but I double checked if I add all the trials to the block and the blocks to the experiment - and I checked whether I reach every level of the  nested loops, and they do. </p><p>(I copy and paste the code, b/c there it doesn&#39;t allow me to upload an image eventhough it has a .jpg / .png extension? - SORRY)</p><p><br /></p><p><br /></p><p># create experiment object</p><p>exp = design.Experiment(name=&#39;Inversion Effect&#39;)</p><p>control.initialize(exp) </p><p><br /></p><p># Define experiment hierarchy</p><p># each category_block (faces_chairs, bodies_chairs) consits of 256 trials = total of 512 trials</p><p>for category_block_order in [&#39;faces_chairs&#39;, &#39;bodies_chairs&#39;]:</p><p>&nbsp;&nbsp;# each category_block is split up into 8 small experiments consiting of 32 trials each</p><p>&nbsp;&nbsp;# --&gt; each small experiment is represented by a block object (16 blocks in total - 8 faces_chairs + 8 bodies_chairs)</p><p>&nbsp;&nbsp;for small_exp in range(8):</p><p>&nbsp;&nbsp;&nbsp;&nbsp;block = design.Block()</p><p>&nbsp;&nbsp;&nbsp;&nbsp;block.set_factor(&quot;category_order&quot;, category_block_order)</p><p><br /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;#prepare variables needed based on between_subject variable</p><p>&nbsp;&nbsp;&nbsp;&nbsp;if category_block_order == &#39;faces_chairs&#39;:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;categories = [&#39;faces&#39;, &#39;chairs&#39;]</p><p>&nbsp;&nbsp;&nbsp;&nbsp;else:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;categories = [&#39;bodies&#39;, &#39;chairs&#39;]</p><p>&nbsp;&nbsp;&nbsp;&nbsp;#prepare main path to get the stimuli</p><p>&nbsp;&nbsp;&nbsp;&nbsp;path = Path.cwd() / category_block_order</p><p><br /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;#each small experiment consists of 4x 8 unique conditions = 32 trials in total</p><p>&nbsp;&nbsp;&nbsp;&nbsp;#Condition Design - 2x2x2 design: CATEGORY x ORIENTATION x DIRECTION --&gt; 8 unique conditions</p><p>&nbsp;&nbsp;&nbsp;&nbsp;for category in categories:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for orientation in [&#39;upright&#39;, &#39;inverted&#39;]:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for direction in [&#39;facing&#39;, &#39;non_facing&#39;]:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trial = design.Trial()</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #get random path to one image within the stimulus_type</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stim_paths = path / category / orientation / direction</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if category == &#39;faces&#39;:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stimulus = random.choice(list(stim_paths.rglob(&quot;*.tif&quot;)))</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stimulus = random.choice(list(stim_paths.rglob(&quot;*.jpg&quot;)))</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#get path to one mask</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mask_paths =&nbsp;path / &#39;masks&#39;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mask = random.choice(list(mask_paths.rglob(&quot;*.jpg&quot;)))</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#add stimulus and mask to trial</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trial.set_factor(&#39;target_stimulus&#39;, str(stimulus))</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trial.set_factor(&#39;orientation&#39;, orientation)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trial.set_factor(&#39;direction&#39;, direction)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trial.set_factor(&#39;mask&#39;, str(mask))</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#add the trial to the small experiment block</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;block.add_trial(trial, copies=4)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;#shuffle the small experiment block and add the small experiment as a block to the experiment</p><p>&nbsp;&nbsp;&nbsp;&nbsp;block.shuffle_trials()</p><p>&nbsp;&nbsp;&nbsp;&nbsp;exp.add_block(block)</p><p><br /></p><p><br /></p><p>Any Ideas why this code doesn&#39;t properly create/initializes the block and trial objects?</p><p>Error message when calling trials/blocks:</p><p>for block in exp.blocks:</p><p>    for trial in block.trials:</p>]]>
        </description>
    </item>
    <item>
        <title>Sync 2 computers tasks</title>
        <link>https://forum.cogsci.nl/discussion/5374/sync-2-computers-tasks</link>
        <pubDate>Tue, 20 Aug 2019 21:09:16 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Camicas05</dc:creator>
        <guid isPermaLink="false">5374@/discussions</guid>
        <description><![CDATA[<p>Hello, </p><p>we would like to know if it is possible to synchronized two computers in a competition task and if it is possible to show the participants the correct and incorrect responses of the opponent. </p><p>Thank you!</p>]]>
        </description>
    </item>
    <item>
        <title>correct respon not match</title>
        <link>https://forum.cogsci.nl/discussion/4710/correct-respon-not-match</link>
        <pubDate>Mon, 07 Jan 2019 03:50:39 +0000</pubDate>
        <category>Expyriment</category>
        <dc:creator>Tanto</dc:creator>
        <guid isPermaLink="false">4710@/discussions</guid>
        <description><![CDATA[<p>Hi All,<br />
I have little problem with my coding to make correct respon from a list which contain same object:<br />
my_stim = ['2','3','3']</p>

<h1>experiment design goes here</h1>

<p>pre_stim = my_stim[trial]<br />
t_first = expyriment.stimuli.TextLine(text=pre_stim, text_bold = True, text_size=60)<br />
t_trial = expyriment.design.Trial()<br />
 t_trial.add_stimulus(t_first)<br />
if my_stim[trial] == '3' :<br />
            correct = 122<br />
        elif my_stim[trial] == '3' :<br />
            correct = 107<br />
        else:<br />
            correct = 122</p>

<p>It gave same answer in object '3' (122 not 107 in second row), then I try:</p>

<p>if my_stim[trial] == '3' and pre_stim == my_stim[0]:<br />
            correct = 122<br />
        elif my_stim[trial] == '3' and pre_stim == my_stim[1]:<br />
            correct = 107<br />
        else:<br />
            correct = 122<br />
It also gave the exact same number in object '3'. Instead using list, do I have to use dict for delivering my stimuli?<br />
Any suggest would be great!!<br />
Thanks in advance</p>
]]>
        </description>
    </item>
   </channel>
</rss>
