MATLAB >> Simulink Joystick Block

by blusterNrg » Fri, 09 Sep 2005 20:02:27 GMT

Could someone help me? I'm trying to retrieve the axes and the
button' state from a Joystick Input Simulink block.
What are the inputs sent by the block?
Does some tutorial exist?


MATLAB >> Simulink Joystick Block

by Jan Houska » Fri, 09 Sep 2005 21:39:25 GMT

Hi Francesco,

If you mean the Joystick Input block found in the Virtual Reality
Toolbox library, then its outputs are like this:

The first output port (labeled Axes) returns the axes of the joystick in
a vector - these are at least two, usually three or more. Value of each
axis is returned in one element of the vector. The values are normalized
into the range from -1 to 1 (but that also depends on how is the
joystick calibrated in the operating system). The X and Y axis are the
first two elements of the vector.

The second output port (labeled Buttons) returns the joystick buttons. 0
means not pressed, 1 means pressed. This is also a vector, with as many
elements as the joystick has buttons.

The third output port (labeled Point of View) returns the value of the
"Point of View" cap. Not all the joysticks have this feature and
therefore this output port may not be present at all.

Good Luck, Jan

Jan Houska HUMUSOFT s.r.o.
XXXX@XXXXX.COM Pobrezni 20 186 00 Praha 8
tel: ++ 420 2 84011730 Czech Republic
fax: ++ 420 2 84011740

MATLAB >> Simulink Joystick Block

by blusternrg » Fri, 09 Sep 2005 23:02:20 GMT

Thanks a lot!!!!!!!
It was what i needed to know!

Similar Threads

1. Simulink -- joystick and pedals


I have a Saitek X45 joystick (USB) and CH Pro Pedals USB and I am
using Simulink joystick blocks (from virtual reality toolbox) to
receive inputs.

The problem is, I cannot get any signals from the CH Pro Pedals. The
joystick block seems cannot be used for pedals.

Please help...

2. Joystick and Simulink - MATLAB

3. interfacing of a USBport joystick with simulink

im trying to interface my hardware with virtual reality toolbox
joystick input box. also ive seek guidence from the demo but im
unable to differentiat between forward and the backward movement of
joystick .can any body help me

4. Simulink Build Issue with Joystick Input - MATLAB

5. Simulink 3D Animation Joystick

Is anyone aware of what kind of force-feedback joysticks can be implemented with teh Simulink 3D Animation Joystick libraries? Will any standard USB-joystick work?

6. why is not the simulink block handle included in "block" input to level 2 mfile - MATLAB

7. Simulink-block LMS and fast block LMS

Does anyone know of an example or demo of how to use the block lms
and fast block lms blocks in Simulink? The tutorial does not exaplian
how the inputs and outputs are formatted.

8. complex inputs and outputs block in *.m s-function block in simulink - MATLAB