Adding rows to the eDat file using code
Raghav
raghav.destiny at gmail.com
Tue Jan 31 16:00:25 UTC 2012
Hello !
I am using ePrime to display a series of pictures which change with a
mouseclick. This is working perfectly
I have a coded function that receives data from an external device
(ASL 504 Pan-Tilt Eyetracker). Everytime the function is run it
receives an X value and a Y value. I am able to store these values as
numbers and even display them on screen.
I am trying to run the above function 30 times a second during each
picture display. I need the eDAT file to have a row for every time it
is run (30 rows per second). Each row should have the usual stimulus
related fields plus this X and Y value from my function
Currently in my trial procedure, I have an inline object after the
picture display and I have this code in it. This is just a simple loop
that continuously receives the x and y values
[quote]
dim x as single, y as single
do
if ASL_GetPOG(x, y, true) then
cnv.Text 20, 20, "Point of gaze from eye tracker"
cnv.Text 20, 40, "x = " & x & " "
cnv.Text 20, 60, "y = " & y & " "
c.setAttrib "textDisplay1.gazePosX", x
c.setAttrib “textDisplay1.gazePosY”, y
end if
Loop Until TextDisplay1.RT > 0
/[quote]
This however just creates one row for each slide and gives me the last
value of X and Y that has been received. Calling the function at
regular time intervals inside the inline object does he same thing. I
am able to create a string and store a long string of these X and Y
values which I am able to parse through later...but an ideal case for
me would be to add a row to the eDAT file everytime the function is
run with X and Y values.
Any help on how to accomplish this would be most helpful. I have a bit
of programming experience but am extremely new to ePrime.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list