Howdy, Stranger!

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

Supported by

[solved] SR-box port problem in OpenSesame 0.27.1 under winXP and win7

edited June 2013 in OpenSesame

Hi folks,

I'm getting a perculiar error with my PST SR-boxes using 0.27.1 tested so far under both winXP and win7 (haven't had time to test under linux yet).
The lights appear to work, but there appears to be no collection of button-presses. The device just acts as if nothing has been pressed. When I change it so that a 'dummy' SR box is used, it works fine (i.e. I can press the keyboard buttons 1 to 5 and it works fine), so I'm thinking its not my script set-up. Also, the lights work as expected - I can program which ones to come on.
The strange thing is that, my computer is using com3 and com4 for the two com ports. it doesnt matter which physical port I use, or which port I specify; the lights come on either way! So, one sr-box object configured to use com4, and switch on light 4 will switch on light 4, but also an sr-box object (within the same experiment) configured to use com5 and switch on light 5 will also do this within the same program and with the box connected to the same (either) serial port.
Anyone else had this problem, or got any idea whats going on? I've tried different SR boxes, plus other stuff I haven't mentioned.
Really grateful for any thoughts.

Best wishes,

NS

Comments

  • edited 8:32AM

    The lights appear to work, but there appears to be no collection of button-presses. The device just acts as if nothing has been pressed.

    One thing that comes to mind is that you are controlling the SR Box in an inline_script, and have not called exp.srbox.start(). This is necessary, because the SR Box doesn't normally send the button status. Also, it's best to call exp.srbox.stop() after the response has been collected, to avoid a buffer overflow.

    Could that be it?

    The strange thing is that, my computer is using com3 and com4 for the two com ports. it doesnt matter which physical port I use, or which port I specify; the lights come on either way!

    That is very odd indeed. As soon as I have an SR Box to test with, I'll see if I can reproduce this.

    Cheers!

    Buy Me A Coffee

  • edited 8:32AM

    Hi neon

    I have been trying to test the latencies of PST SRB200A and Cedrus RB-X30 using the latest version of Opensesame (0.27.2) but couldn't get them to work. The only way that I could test these units was by downloading an older versions (0.25) zip file, and extracting all files and then double clicking on the opensesame.exe in this folder.

    Have the plug-ins changed?

    Regards

    Gary

  • edited 8:32AM

    Hi Gary (the Swansea technician?),

    I have been trying to test the latencies of PST SRB200A and Cedrus RB-X30 using the latest version of Opensesame (0.27.2) but couldn't get them to work.

    In what sense did they fail to work? Did you receive an error message?

    Have the plug-ins changed?

    Not really, I can't see any significant changes in the srbox plug-in history for a long time. That being said, maybe there's some small change that unexpectedly causes problems. What happens if you replace the 0.27.2 version of the plug-in with the 0.25 version (i.e. just replace the plug-in folder)? Does this fix the issue?

    Cheers!
    Sebastiaan

    Buy Me A Coffee

  • edited 8:32AM

    Hi sebastiaan

    the Swansea technician?

    Yes, :)

    In what sense did they fail to work? Did you receive an error message?

    Basically the presence and absence of a SR Box was detected, but key presses were not. The only way to exit was control alt del. No error messages.

    Not really, I can't see any significant changes in the srbox plug-in history for a long time. That being said, maybe there's some small change that unexpectedly causes problems. What happens if you replace the 0.27.2 version of the plug-in with the 0.25 version (i.e. just replace the plug-in folder)? Does this fix the issue?

    I will try replacing the plug-in either today or tomorrow and will late you know.

    Thanks

    Gary

  • edited 8:32AM

    Hi

    Just tried swapping the plug-in, get the error message Failed load plugin 'srbox'

    This error message is the same for using old srbox plugin with new opensesame and new plugin with old opensesame.

    Gary

  • edited 8:32AM

    Hi Gary and Neon,

    I just tried it myself, and indeed: No response from the SR Box. I was initially puzzled, but it turns out that I accidentally removed a crucial line as part of some code clean-up. I committed a fix, which should address the problem (but if not, please let me know). To use the patched plug-in immediately, simply download the latest OpenSesame snapshot from GitHub and replace the plugins/srbox folder of your own installation by the plugins/srbox folder from the code snapshot.

    Direct download link:

    Thanks for pointing this out!

    Cheers,
    Sebastiaan

    Buy Me A Coffee

  • edited 8:32AM

    Hi Sebastian

    that I accidentally removed a crucial line as part of some code clean-up

    Been there, done that :(

    Glad to say that your update works, thanks for that.

    Gary

  • edited 8:32AM

    Sebastiaan, Gary,

    Indeed, cleaning up code has left me in trouble many a time...
    Anyway, thanks very much Sebastiaan - it is now working, so happy for this issue to be marked as closed. Alas, I've found another issue with the PST box, but will start another thread.

    Best wishes,

    Neale

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