Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Logging random number input irrelevant of video sequence.

Hello,

I need participants to decide if they want to see the video sequence again or not. But whichever path they choose they should type in the previously shown random number. The random number input should of course be logged for later analysis.

I have established a random number generator with an inline script and have the videos playable in the table of the loop. I tried inserting the keyboard_response item, but as far as I got was either the experiment ended when participants wanted to see the same video sequence again or the next video sequences played no matter what the participants typed. On both occasions the random number input was only partially logged (usually after seeing the next video sequence).

Can I do this with Open Sesame or must another Inline Script be inserted?

Thank You!
Dcube

Comments

  • edited September 2016

    Hello again

    Good thing that it seems to log the random numbers though! Now it seems it is only a matter of enabling participants to either view the same video again or move to the next one. Does anyone has a suggestions? Sounds like something easy is missing, here is the arrangement of items in my experiment:

    Experiment_sequence>

    1st main usual sequence, is followed by:

    Inline_Script>

    Has the codes: exp.set('response', 'None') and is followed by:

    Experiment_Loop>

    The table has addresses of required videos, sequential, never to break, and evaluate on first cycle are on, which is followed by:

    Sequence>

    Just presents the following loop:

    New_Loop>

    The table has two variables: Trial_Number (set at 1) and Video (set as [VIDEOS]), set to break if [response] = y, sequential, and is followed by:

    New_Sequence>

    Has all the items listed much like below:

    RandomNumberInlineScript>

    Generates random numbers, followed by:

    Sketchpad>

    Positions the random numbers, followed by:

    Video_Player>

    Uses variables mentioned in the loop in the Video File area, such as [VIDEOS] or [Video]

    Text_Input_forRandomNumbers>

    This is where the shown random numbers are typed, followed by:

    Logger>

    Stores all the responses.

    Text_Input_ToDecideToRepeatOrNext>

    Informs participants to either press y to move to next or SPACE to see the same video player again.

    Keyboard_Response

    Allowed responses are y and SPACE.

    With this arrangement of items OS replays when SPACE is pressed and logs the random numbers. But should one press y then the experiment ends rather than move to the next video sequence.

    Can anyone please tell me what is missing in my experiment?

    Thanks
    DCube

  • An Inline_Script should tie the loose ends. If clicked y move to next, else repeat the same video. Can someone tell me how to write that in a acceptable language for OS please?

    DCube

  • Or a custom python code right below the Video Player area might do the trick?

    DCube

  • edited September 2016

    Particularly quiet these days around here. Here is the inline script that I am trying see if it works:

    keyboard_response = keyboard(keylist=['y','SPACE'])
        if var.response = y
            loop [VIDEOS]
        if var.response = SPACE
            next [VIDEOS]
    

    But the Inline Script is red so far!

  • edited September 2016

    The problem is that when y is pressed to Break the new_loop, the experimental_loop brakes too for some reason, leading to the end of the experiment. Why does it not moves on to the Next video sequence in the experimental_loop at this point but rather ends the whole experiment instead?

    DCube

  • Strangest of all solutions!

    Just by putting another text_input item below the new_loop, the break if command does not ends the experiment!

    Could anyone provide an interpretation as to why that is so at least?

    DCube

  • Hi DCube,

    I doubt that adding merely adding another text_input is the sole reason why this worked suddenly. Especially, considering that your code above is not proper python code. Anyway, if it works now and you're happy with it, then everything is fine I suppose. If not, it might be a good idea to upload your experiment for us to have a better look.

    Thanks,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games