# communicating with drivers

**URL:** <https://psychtoolbox.discourse.group/t/communicating-with-drivers/903>\
**Category:** Uncategorized\
**Created:** [June 25, 2002, 5:16pm UTC](https://psychtoolbox.discourse.group/t/communicating-with-drivers/903 "2002-06-25T17:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [June 25, 2002, 5:16pm UTC](https://psychtoolbox.discourse.group/t/communicating-with-drivers/903/1 "2002-06-25T17:16:10Z")

</div>

My quest to make the perfect tracking experiment script   
continues. Apparently, the maximum capture rate for cursor   
position using GetMouse is 60 samples/sec, despite the fact   
that the serial input from the tablet is at least 100. I thought this   
might be the screen refresh rate, but it's unchanged at various   
resolutions.  
  
So I thought I would use SERIAL to talk directly with the tablet   
from Matlab. Unfortunately, the tablet's output is a little hard to   
figure out, and I'm new to serial interfacing. Also, the extent of   
the available documentation says, "don't even consider talking   
directly to the tablet. Go through the driver."  
  
Is this possible with Matlab? I have some sample code in C   
from the WACOM's development website for polling the driver. I   
barely know any C, but if I adapted a .mex file, would it be   
possible to create a Matlab function that talks to the tablet driver?   
Am I even on the right track?  
  
I'm really new at this "behind the scenes" programming, so any   
advice, pointers, or links for further resources would be very   
much appreciated.  
  
Thanks,  
tj
