Latency in reading a joystick in MATLAB

Hi, I am using MATLAB R2014a and I am reading a joystick(Logitech Extreme 3D Pro) output using the following code
ID = 1;
% Create joystick variable
joy=vrjoystick(ID);
Y=axis(joy,2);
I was wondering what is the typical latency in MATLAB for reading such USB joystick (i.e the time difference between the moment joystick is deflected and the moment the actual deflection is read by axis(joy,2) command). I need this delay for analysis, it may not be huge and I am expecting it to be of the order 0.01 s but if anyone has any knowledge regarding this it would be helpful.
Thank you

1 Comment

This may not be an answer you are looking for but something to think about. MATLAB is running on a non Real-Time OS (non-RTOS) like Windows for example that does not guarantee task execution times.. So I am not sure how you would calculate that latency..

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 14 Jul 2016

Commented:

on 14 Jul 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!