--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/053383ae-b64b-43fc-9708-c4a68b7c7874%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Jonathan Peirce University of Nottingham http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/8f767c80-3266-4739-98c8-1a606695336e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| 12.2 |
| 12.9 |
| 4.3 |
| 7.5 |
| 13.0 |
| 6.4 |
| 13.6 |
| 5.2 |
| 7.9 |
| 8.7 |
| 6.2 |
| 4.7 |
| 13.3 |
| 10.7 |
| 14.6 |
| 4.4 |
| 9.1 |
| 3.7 |
| 7.3 |
| 7.0 |
| 5.64 |
| 9.52 |
| 1.72 |
| 12.43 |
| 2.41 |
| 6.61 |
| 0.89 |
| 13.74 |
| 7.88 |
| 15.30 |
Wow, this timing variance is just insane...
By the way, have you checked whether the process priorities are actually raised after the first setPriority() calls? You can test by printing the return value of getPriority().
Richard
--
Sent from my cell phone.
We did some more testing and found that (unexpectedly and bizarrely) iohub actually produces worse times than the event module in this situation. .....
waitforkeys()
12.2
...
getpresses()
6.2 14.6 ...
windows_msgpump_interval: 0.01
It may also be that there's something odd we're doing with our script so I'll add that as soon as I can grab it off the computer.
If there are some unadvertised methods in the iohub classes that would allow me to have a look at the sync between the iohub clock and the psychopy.core clock, I could have a look at that as well.
ioserv_time = IOHUB_SERVER.getTime()dt = core.getTime() - IOHUB_SERVER.getTime()| 2.42 |
| 0.81 |
| 10.33 |
| 9.07 |
| 1.72 |
| 6.35 |
| 5.00 |
| 2.82 |
| 10.03 |
| 1.63 |
| 7.81 |
| 13.78 |
| 4.27 |
| 13.53 |
| 5.04 |
| 6.73 |
| 10.17 |
| 2.65 |
| 8.16 |
| 13.39 |
| 15.37 |
| 15.67 |
| 8.83 |
| 10.86 |
| 7.26 |
| 13.29 |
| 8.56 |
| 2.08 |
| 3.11 |
| 2.38 |
I changed the windows_msgpump_interval in the default_config.yaml file to 0.001 and still got the following time errors:
2.42 0.81 10.33 ..... 1.63
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/0B14e8MsQWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/37ced79f-86d4-4528-862e-77ce6e7bd8ef%40googlegroups.com.
| .event | .iohub |
| 14.54057 | 14.23652 |
| 8.331786 | 8.066382 |
| 8.606956 | 8.317403 |
| 7.667577 | 7.390098 |
| 2.454527 | 2.186708 |
| 9.854391 | 9.560612 |
| 14.14973 | 13.88855 |
| 8.431116 | 8.169033 |
| 11.06313 | 10.76815 |
| 4.008676 | 3.721839 |
|
| 9.332096 |
| 11.16157 |
| 8.615619 |
| 2.290314 |
| 1.148599 |
| 10.1034 |
| 10.92779 |
| 4.160154 |
| 1.768414 |
| 12.09875 |
| 4.322792 |
| 7.089614 |
| 4.395806 |
| 6.115912 |
| 8.145487 |
| 6.037905 |
| 7.621172 |
| 5.952045 |
| 14.07874 |
| 6.749861 |
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/0B14e8MsQWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/01ea1232-536c-4770-8385-c207d8414fd4%40googlegroups.com.
So it seems that launching the iohub server is doing something that interferes with the timing for both iohub and event.
| .event | .iohub |
| 14.54057 | 14.23652 |
| 8.331786 | 8.066382 |
| 8.606956 | 8.317403 |
| 7.667577 | 7.390098 |
| 2.454527 | 2.186708 |
| 9.854391 | 9.560612 |
| 14.14973 | 13.88855 |
| 8.431116 | 8.169033 |
| 11.06313 | 10.76815 |
| 4.008676 | 3.721839 |
# Note: If the cpu has hyperthreading enabled,
# actual core count is 1/2 what is reported.
print "Num CPU Cores:",Computer.getProcessingUnitCount()
print "psycho, iohub proc affinities:", Computer.current_process.cpu_affinity(),Computer.iohub_process.cpu_affinity()# You may need to be running in an admin account for this to work....
pucount = Computer.getProcessingUnitCount()
# Assuming you have a 4 core cpu if computer reports 4 cores
# then there is no hypertheading. If 8 cores are reported, then
# hyperthreading is enabled.
if pucount == 4:
#try using the second core for psychopy and the third for iohub.
psycho_cores = [1,]
iohub_cores = [2,]
elif pucount == 8:
# If there is hyperthreading, then set each
# hthread for the relevent core.
psycho_cores = [2,3]
iohub_cores = [4,5]
else:
raise ValueError("Reported core count != 4 or 8: %d"%pucount )
Computer.setProcessAffinities(psycho_cores,iohub_cores)
print "psycho, iohub proc affinities:", Computer.current_process.cpu_affinity(),Computer.iohub_process.cpu_affinity()then this must mean that the delay between when the BB response device sends the button press event and when the event is timestamped psychopy is <= 0.65 msec for .event and <=0.35 msec msec for .iohub (3.1_time - 3.2_dt given above). This is relatively consistent with what was found in the "waitkeys_keypress Test" with the "Teensy 3 ioSync Keyboard" test and data I mentioned in my last post. It is about 1/2 msec faster actually.
I wasn't able to get the iohubDelayTest demo to run. It produced a large number of errors:
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/0B14e8MsQWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/83677ccd-5cba-4275-8227-6922a72e0e27%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CABw5XkXZ2qMfmMf_f8s9GqUa-2RhvT61QQ%2BSNDRSFR8VahXxyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Jonathan Peirce University of Nottingham http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
...
To summarize the results you are finding:
- when you run timingtimeByFrames it reports no dropped frames and low interframe interval variance when iohub is running and when it is not. So iohub is not affecting inter frame intervals when using that test.
- when you run the your test script and get both .event and .iohub kb event times for each trial response, they are the same (within 0.5 msec).
- when you run 2) without iohub you get BBTK RT vs psychopy RT differences < 1 msec.
- when you run 2) with iohub you get BBTK RT vs psychopy RT differences as large as 10 msec or so.
Please could you tell me how to set windows_msgpump_interval within my script? The computer I'm using is a client machine that runs PsychoPy from a server, so I don't have access to the default_config.yaml file
ioconf = io.getHubServerConfig()Also I am wondering: does this finding imply that all RTs collected with older versions of ioHub, i.e., with windows_msgpump_interval: 0.01 instead of 0.001, carry a jitter of up to 10 ms if one didn't happen to "pyglet-pump" for some reason at the same time?
We are planning to run an RT study soon, using the PST SRbox; should I change the windows_msgpump_interval accordingly? Or can I safely leave it at 0.01?
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAGm-8jNzfak%2Bu3aiiw_o7z4BzajXwFfQX9E2BMF1P1TdTCUP%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Does the PST serial box return the time from its own clock or does it also depend on the time it was noticed by the system?