Hello Allen W. Ingling,
My name is Mury.
I am MSc student of TU Delft (The Netherlands).
I have also a problem with USB joystick.
How to read the input USB joystick directly from SIMULINK window (not
from MATLAB environment) ?
Thanks in advance.
Best regards,
mury
--- In
psychtoolbox@yahoogroups.com, "Allen W. Ingling"
<ingling@c...> wrote:
>
> I have attached new functions for reading joysticks from within
Matlab
> on Windows. They should work with any USB joystick with drivers for
> Windows.
>
> The README.TXT file from the package is attached to this message, it
> gives details.
>
> Allen
>
>
>
>
>
>
> Distribution Notes for Psychtoolbox Joystick Functions for Windows.
>
______________________________________________________________________
_______
>
>
> The Joystick function will be included in the next release of the
Psychtoolbox, version 2.46. It is released separately, here in this
package, ahead of the full Psychtoolbox version 2.46.
>
> The Joystick function should work with any USB joystick available
for Windows. It and JoystickDemo.m have been tested with the Gravis
GamePad Pro USB and the Gravis Destroyer AfterShock joysticks in
Matlab version 6.1, with Psychtoolbox version 2.45 under Windows
2000.
>
> For bug reports and comments you may either contact the author,
Allen Ingling, or post a message to the Psychtoolbox Forum.
> Allen Ingling: ingling@c...
> Psychtoolbox Forum: psychtoolbox@yahoogroups.com
> Psychtoolbox Forum online:
http://groups.yahoo.com/group/psychtoolbox/messages/
>
> The Psychtoolbox Joystick functions link to SDL
(
http://www.libsdl.org/). SDL is released under the GNU Lesser
General Public License (LGPL), which requires that we meet certain
conditions (
http://www.libsdl.org/license.html). One of those
conditions is that we include a copy of the LGPL license, which is in
the LGPL.txt file in this package. Also, to satisfy the license
terms: We agree to provide, upon request, the object code for the
compiled Psychtoolbox Joystick.dll function. The source code to
Joystick.dll is available under the same terms as the rest of the
Psychtoolbox, see
http://www.psychtoolbox.org/intro.html#copyright .
>
>
>
> Installation Instructions:
>
>
______________________________________________________________________
_______
> CONTENTS OF ARCHIVE:
>
>
> README.TXT -this text file
> JoystickDemo -folder
> PsychJoystick -folder
> SDL.dll -dll file.
> LGPL.txt -text file.
>
>
>
______________________________________________________________________
_______
> INSTALLATION:
>
> STEP 0:
>
> Uncompress the archive file Joystick_Distrib.zip.
>
> STEP 1:
>
> Make sure that you have the Psychtoolbox for Windows installed on
your computer. If you do not, then you can get it here:
> http://www.psychtoolbox.org/download.html#psychtoolboxwin
>
> STEP 2:
>
> Move the included "JoystickDemo" folder to your PsychDemos folder.
The path to your JoystickDemo folder should look something like:
> C:\matlabR12\toolbox\PsychToolbox\PsychDemos\JoystickDemo
>
> STEP 3:
>
> Move the included "PsychJoystick" folder to you Psychtoolbox
folder. The path to PsychJoystick should look something like:
> C:\matlabR12\toolbox\PsychToolbox\PsychJoystick
>
> STEP 4:
>
> Move the included SDL.dll file to the same directory as your
Matlab.exe file. The path to the file should look something like:
> C:\matlabR12\bin\win32\SDL.dll
>
> STEP 5:
>
> Add these paths to your Matlab path. For instructions on how to
add files to your Matlab path, see your Matlab documentation.
> C:\matlabR12\toolbox\PsychToolbox\PsychDemos\JoystickDemo
> C:\matlabR12\toolbox\PsychToolbox\PsychJoystick
>
> STEP 6:
>
> If you have not installed Joysticks, follow the instruction
included with the USB joysticks.
>
> STEP 7:
>
> If you have Matlab 6.0 or greater, launch Matlab with the -nojvm
command line option. If you have Matlab version 5.x, just launch
Matlab. Type "JoystickDemo" in the Matlab command window and hit
the return/enter key.