<p dir="rtl">تتعطانااغ</p>
<div class="gmail_quote">بتاريخ ١٤‏/٠٥‏/٢٠٢٠ ١٢:٠٥ م، جاء من "Lee Leah" <<a href="mailto:leah@labvanced.com">leah@labvanced.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="18" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:18px;max-width:570px;width:570px"><tbody><tr><td align="left" valign="top" width="100%" style="color:rgb(63,63,63);font-family:'arial','helvetica',sans-serif;font-size:13px;font-weight:normal;line-height:normal;text-align:left"><p style="margin:0px 0px 1em 0px">In this How-To, I would like to explain how to import and present stimuli dynamically using variables and the event system. By using the <a href="http://www.labvanced.com" target="_blank">Labvaned </a>Trial System one can easily change the type of stimuli (image, text, or video) for each trial. While this is the easiest and fastest way to create trials with various stimuli, it sometimes can be useful to choose an alternative / programmatic way to select stimuli for a given trial/ frame. Here is how you can do this:</p><p style="margin:1em 0px 1em 0px"> </p><p style="margin:1em 0px 0px 0px">1-Create a variable with data format “array”, and data type “file” (for audio or video data) or “string” or “numeric” for text / numeric stimuli.<br>2-Now click on the folder icon (upload file), for audio or video data you can select multiple files, for text or numeric data 1 (CSV) file. The CSV file will be parsed and the array will be filled up with the comma separated entries.<br>3-After you press ok you should see the array filled up with values as shown below:</p></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:0px;max-width:570px;width:570px"><tbody><tr><td align="center" valign="top" style="font-size:0px"><div style="max-width:570px;width:570px"><div style="max-width:100%;min-width:50%;vertical-align:top"><table align="left" border="0" cellpadding="0" cellspacing="0" width="285" style="border-collapse:separate;border-spacing:0px;width:285px"><tbody><tr><td align="center" valign="top" width="100%"><img align="center" border="0" height="180" src="https://mosaico.io/srv/f-1wi56pc/img?src=https%3A%2F%2Fmosaico.io%2Ffiles%2F1wi56pc%2Ftext1.png&method=cover&params=285%2C180" width="285" style="border:0px;color:#3f3f3f;font-family:'arial','helvetica',sans-serif;font-size:13px;height:auto;margin:0px auto 0px auto;max-width:285px;text-decoration:none;vertical-align:top;width:285px"></td></tr></tbody></table></div><div style="max-width:100%;min-width:50%;vertical-align:top"><table align="left" border="0" cellpadding="0" cellspacing="0" width="285" style="border-collapse:separate;border-spacing:0px;width:285px"><tbody><tr><td align="center" valign="top" width="100%"><img align="center" border="0" height="180" src="https://mosaico.io/srv/f-1wi56pc/img?src=https%3A%2F%2Fmosaico.io%2Ffiles%2F1wi56pc%2Ftext2.png&method=cover&params=285%2C180" width="285" style="border:0px;color:#3f3f3f;font-family:'arial','helvetica',sans-serif;font-size:13px;height:auto;margin:0px auto 0px auto;max-width:285px;text-decoration:none;vertical-align:top;width:285px"></td></tr></tbody></table></div></div></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="18" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:18px;max-width:570px;width:570px"><tbody><tr><td align="left" valign="top" width="100%" style="color:rgb(63,63,63);font-family:'arial','helvetica',sans-serif;font-size:13px;font-weight:normal;line-height:normal;text-align:left"><p style="margin:0px 0px 1em 0px">We have now saved the stimuli inside a variable - so next we need to read them out, each trial a new/different. Also we want each subject to see a different order/ sequence of the stimuli.  So the next thing we do is:</p><p style="margin:1em 0px 0px 0px"> 4-Create an event (only once in the introductory task ) with trigger “onFrameStart” and action “ShuffleArrayEntries” for our stimulus array.<br>5-Then we go to the experimental task and create an event to read out a new stimulus for each trial. For this, we create an event with Trigger “onFrameStart” and “SelectFromArray” as an action. For “array variable” we choose our created stimulus array, for index variable we choose the system variable “Trial_Nr,” and as output we define a new scalar variable which will hold the single stimulus/file.</p></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:0px;max-width:570px;width:570px"><tbody><tr><td align="center" valign="top" width="100%"><img align="center" border="0" src="https://mosaico.io/srv/f-1wi56pc/img?src=https%3A%2F%2Fmosaico.io%2Ffiles%2F1wi56pc%2Ftext3%2520%25282%2529.png&method=resize&params=570%2Cnull" width="570" style="border:0px;color:#3f3f3f;font-family:'arial','helvetica',sans-serif;font-size:13px;height:auto;margin:0px auto 0px auto;max-width:570px;text-decoration:none;vertical-align:top;width:570px"></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="18" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:18px;max-width:570px;width:570px"><tbody><tr><td align="left" valign="top" width="100%" style="color:rgb(63,63,63);font-family:'arial','helvetica',sans-serif;font-size:13px;font-weight:normal;line-height:normal;text-align:left"><p style="margin:0px">6. Now to show a (different /selected) value for each trial, first set the “#Trials” (lower left corner) to how many stimuli you want to show (also include some logic to go to the next trial, e.g a fixed frame duration).<br>7. For showing numbers or text include a text element on your frame and insert the scalar output variable via the red variable insert</p></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:0px;max-width:570px;width:570px"><tbody><tr><td align="center" valign="top" width="100%"><img align="center" border="0" src="https://mosaico.io/srv/f-1wi56pc/img?src=https%3A%2F%2Fmosaico.io%2Ffiles%2F1wi56pc%2Ftext4.png&method=resize&params=570%2Cnull" width="570" style="border:0px;color:#3f3f3f;font-family:'arial','helvetica',sans-serif;font-size:13px;height:auto;margin:0px auto 0px auto;max-width:570px;text-decoration:none;vertical-align:top;width:570px"></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="18" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:18px;max-width:570px;width:570px"><tbody><tr><td align="left" valign="top" width="100%" style="color:rgb(63,63,63);font-family:'arial','helvetica',sans-serif;font-size:13px;font-weight:normal;line-height:normal;text-align:left"><p style="margin:0px">8. For images, video, or audio data use the action “setObjectProperty” “Filedata” to and the scalar file output variable (e.g this will determine what image is shown inside the image object):</p></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:0px;max-width:570px;width:570px"><tbody><tr><td align="center" valign="top" width="100%"><img align="center" border="0" src="https://mosaico.io/srv/f-1wi56pc/img?src=https%3A%2F%2Fmosaico.io%2Ffiles%2F1wi56pc%2Ftext5.png&method=resize&params=570%2Cnull" width="570" style="border:0px;color:#3f3f3f;font-family:'arial','helvetica',sans-serif;font-size:13px;height:auto;margin:0px auto 0px auto;max-width:570px;text-decoration:none;vertical-align:top;width:570px"></td></tr></tbody></table></div></td></tr></tbody></table><table bgcolor="#bfbfbf" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color:rgb(191,191,191);color:rgb(145,145,145);font-family:'times new roman';font-size:medium;font-style:normal;font-weight:400;min-width:0px!important;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><tbody><tr><td align="center" valign="top" style="font-size:0px;min-width:0px!important;padding-left:9px;padding-right:9px"><div style="margin:0px auto 0px auto;max-width:570px"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="18" width="570" style="background-color:rgb(255,255,255);border-collapse:separate;border-spacing:18px;max-width:570px;width:570px"><tbody><tr><td align="left" valign="top" width="100%" style="color:rgb(63,63,63);font-family:'arial','helvetica',sans-serif;font-size:13px;font-weight:normal;line-height:normal;text-align:left"><p style="margin:0px 0px 1em 0px">That’s it. Now you can test/play your study and you should see a new value/stimulus for each trial. To test this on your own feel free to use and import our sample study:</p><p style="margin:1em 0px 1em 0px"> </p><p style="margin:1em 0px 1em 0px">Best regards,</p><p style="margin:1em 0px 0px 0px"><br>The <a href="http://www.labvanced.com" target="_blank">Labvanced</a> Team</p><p style="margin:1em 0px 0px 0px">Leah Lee</p><p style="margin:1em 0px 0px 0px"><a href="mailto:leah@labvanced.com" target="_blank">leah@labvanced.com</a></p><p style="margin:1em 0px 0px 0px"><a href="http://www.labvanced.com" target="_blank">www.labvanced.com</a></p></td></tr></tbody></table></div></td></tr></tbody></table></div><br>______________________________<wbr>_________________<br>
Announcements mailing list<br>
<a href="mailto:Announcements@lists.cognitivesciencesociety.org">Announcements@lists.<wbr>cognitivesciencesociety.org</a><br>
<a href="http://lists.cognitivesciencesociety.org/listinfo.cgi/announcements-cognitivesciencesociety.org" rel="noreferrer" target="_blank">http://lists.<wbr>cognitivesciencesociety.org/<wbr>listinfo.cgi/announcements-<wbr>cognitivesciencesociety.org</a><br>
<br></blockquote></div>