Help reading system time
in OpenSesame
Hey everyone! I'm quite new to OpenSesame so I hope this isn't too painfully obvious, but my question is this: I need to read system time, but the way that OpenSesame is presenting time to me is confusing and I can't read it. I followed this tutorial http://forum.cogsci.nl/index.php?p=/discussion/2248/system-time-for-each-sketchpad#latest and when I run my program and check the data in Excel, I see numbers such as this under "time_target"; 3229.89010811
How do I understand what that number represents?
Thanks for your time and help beforehand, appreciate it!
Comments
Hi Astn,
We need a bit more information! What did you add to the script to obtain the system time?
If you added the exact same code provided in the link the system time should appear in your excel file under the column
my_system_time. It is difficult to say what a column in your log file represents without additional information, but the variable you refer to is probably the time your target was on screen or when the target was presented since the start of your experiment/loop. It is in miliseconds.Best,
Laurent
I added: from datetime import datetime
var.my_system_time = datetime.now().strftime('%d-%m-%y %H:%M:%f')
Hmm...I added the exact same code as in the above link (to the best of my knowledge) and I don't see any column as my_system_time in my excel sheet; I see time_event_log, time_experiment, time_fixation, and time_target. I know that must not have too much meaning without the context of my experiment however. I can send the script and the excel file if you'd like. I'm running this on Ubuntu and my OpenSesame is the latest edition. Any idea on what might be going on here?
Also, thank you for the help! Not just here either; I've seen you on many posts and have learned a lot. Appreciate it!
Hi Astn,
Could you share the experiment script so i can look at it? It should be working, at least, so it does on my end.
Thanks!
Ok so here is the entire script below, I'm using pastebin cause it was a bit more neat but if you'd like it just posted in the comments I could do that as well! The script is a part of an experiment that measures the N170 Event-related potential by presenting different pictures and then measuring the brain activity that occurs during the presentation of these images; that's why the system time in milliseconds is so important to ensure accuracy and precision.
http://pastebin.com/sdxfViZ7
Hi Astn,
I wasn't able to compile your experiment based on the script (probably because i'm running a different version on Windows). But to me it looks like you are not logging the system time variable. Either select log all variables in your
loggeritem or manually add the variable there ("Add custom variable", in the top right corner).Hopefully it works now, good luck with your experiment!
Laurent
That gave me the system time! It would figure that after all that wondering of what was going on, in the end I was over-analyzing the hell out of it and the answer was a simple mouse-click right in front of me lol.
Thanks again for all your help!