3.0

3.0 | 7 ratings Rate this file 11 Downloads (last 30 days) File Size: 14.39 KB File ID: #14756

Windows Joystick access

by Thomas Riemer

 

24 Apr 2007 (Updated 23 Mar 2009)

access windows-joysticks from simulink and slow down simulation speed

| Watch this File

File Information
Description

This s-function outputs 6-axes from the Windows Joystick-driver along with 16 joystick-buttons and can slow down the simulation speed to "real-world-speed", so you can test behavior of models.
Slow-down is accopmlished by "active waiting", so CPU-usage rises to 100%, which is not really a problem, because only unused CPU-time is wasted.
If anyone wants to fix it, go ahead

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
26 Apr 2007 Mr. Tester

Depending on a unknown binary?! Where is the source?!

28 Apr 2007 San K

I haven't a PCWIN... and I need the source !!

13 Sep 2007 Joystick User

Only joystick application that worked on my machine. Of course source would be nice, but it does provide all axis and all buttons so a second function can be written to provide logic.

13 Sep 2007 No CPU Left

CPU runs at 100%. Can't find anyway around it. Where is the source, perhaps someone could make this run better.

29 Mar 2008 dragan djokovic  
21 May 2008 Amin Ahmadi

Source would be nice,
it can;t compile with RTW (QuaRC) it complains that the parameters are uint8 and they should be double.

20 Oct 2011 Mr Smart  
Please login to add a comment or rating.
Updates
20 Mar 2009

Sourcecode added.

23 Mar 2009

released source files
sorry, could not provide binaries

Tag Activity for this File
Tag Applied By Date/Time
hardware driver Thomas Riemer 22 Oct 2008 09:10:14
joystick Thomas Riemer 22 Oct 2008 09:10:14
windows Thomas Riemer 22 Oct 2008 09:10:14
simulation Thomas Riemer 22 Oct 2008 09:10:14
test and measurement Thomas Riemer 22 Oct 2008 09:10:14
axes Thomas Riemer 22 Oct 2008 09:10:14
joystick Aron 22 Mar 2009 14:35:25
joystick Simon 17 Oct 2010 14:23:23

Contact us at files@mathworks.com