![]() |
|
#2
|
|||
|
|||
|
We monitor our participant's orientation with an Intersense cube, and record orientation periodically to a datafile. Our code looks something like this:
Code:
response_orientation = marker.getEuler() response_yaw = response_orientation[0] datafile.write(str(response_yaw)) datafile.flush() As for updating the filename, we prompt at the beginning of the script for a participant number, and use that to create the filename, like this: Code:
# open a datafile for recording
subject = viz.input('Subject number:')
filename = 'datafiles/subject' + str(subject) + '.txt'
datafile = open(filename,'a')
Hope that is helpful!
__________________
Virtual Environments and Multimodal Interaction (VEMI) Lab This time, it should work... |
|
|