Drawing Figures Using a Graphics Tablet
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Drawing Figures Using a Graphics Tablet Expand / Collapse
Author
Message
Posted 5/28/2008 8:40:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/18/2008 9:12:14 AM
Posts: 4, Visits: 52
Hello,

I'm trying to use EPrime in conjunction with a graphics tablet. I basically want a figure to be present on a slide and then underneath get participants to draw the figure (using the graphics pen as if it is the mouse I assume). I'd want to record factors such as velocity and onset time. I imagine I can do this by recording x y coordinates and some sort of response time. I'd need to get a visible trace on-screen from where the participants are drawing the figure. Does anyone know if this is possible? Thank you very much for any suggestions.

Post #1612
Posted 5/29/2008 10:35:46 AM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Today @ 9:12:01 AM
Posts: 549, Visits: 1,196
If the times when clicks are of interest then using the ResponseData facilities will provide that information and we can touch base on that.  But my assumption is that you want every mouse move while the button is already down.  My suggestion would be to take Sample: Process Responses Template and in the "insert your action here" use Mouse.GetCursorPos coupled with Clock.Read and c.SetAttrib to log the x/y and times each time they change.

-Brandon

Post #1619
Posted 5/30/2008 10:05:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/18/2008 9:12:14 AM
Posts: 4, Visits: 52
Marvellous thank you. I'll have a fiddle with that. Thanks.

Kerry

Post #1621
Posted 6/2/2008 9:53:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/18/2008 9:12:14 AM
Posts: 4, Visits: 52
Thanks again for the suggestions, I've tried the things you've said but I'm still struggling to get anything useful out of it. It's down to me putting incorrect script in I think, I'm rather rusty with EPrime. Do you by any chance have any sample scripts of the sort of thing that I should be inputting (to get Mouse.GetCursorPos coupled with Clock.Read and c.SetAttrib to log the x/y and times each time they change, as you suggested)? Thank you very much.

Kerry

Post #1629
Posted 6/3/2008 10:37:33 AM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Today @ 9:12:01 AM
Posts: 549, Visits: 1,196
Take a look at the attached, while the IsPending loop is pumping, the loop gets the X/Y of the mouse, compares to the last mouse coordinates and if they differ, adds them in their own row to the data file under Mouse.CursorX, etc. columns.

-Brandon

  Post Attachments 
ProcessResponsesTemplateEdit.es (6 views, 23.11 KB)

Post #1637
Posted 6/3/2008 10:52:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/18/2008 9:12:14 AM
Posts: 4, Visits: 52
That's fantastic, thank you so much!
Post #1638
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 9:25am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 11 queries. Compression Disabled.