Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

...test millisecond accurate keyboard refresh rate

  1. #1

    ...test millisecond accurate keyboard refresh rate

    Hi,

    One of my professors bought a keyboard of yours and I'm trying to figure out how I can look for a difference vs. a standard USB keyboard. Right now I'm using MATLAB and the psychophysics toolbox, using the following script:

    t1=GetSecs();
    cycles=100000;
    for i = 1:cycles
    KbCheck();
    end
    t2=((GetSecs()-t1)*1000)/cycles

    t2 for the empirisoft keyboard is .11
    t2 for the regular USB keybooard is .10

    please let me know if any of this is unclear, but I can't seem to find a difference right now. any ideas?

  2. #2
    I'm not terribly familiar with Matlab, but I assume that you're just checking the state of the key(s) 100,000 times?

    John

  3. #3
    yep. it returns a key status whether a key is pressed or not.

    -b

  4. #4
    [edited by moderator]
    As far as I can tell, I can't access the BIOS when I boot up with the directIN keyboard. and my msec response rates are about the same (every 9 msec) whenI test it in MATLAB. On my powerbook, the response rate for the built in keyboard is about 3 msec, so I'm pretty sure the kbcheck() routine I've been using works. Any ideas on how I can tell if the keyboard driver is working?

    thanks
    -Ben

  5. #5
    Ben and I have since spoken. A good summary of that conversation is found here:

    http://support.empirisoft.com/showthread.php?p=186#post186

    - John