Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Joystick and Simulink

Subject: Joystick and Simulink

From: Tschouns

Date: 18 Apr, 2007 01:17:23

Message: 1 of 4

I posted this question before, but no one answered. Here again:

I try to use a USB-Joystick (Logitech FORCE3D Pro) together with the
Simulink "Real-Time Windows Traget". I've read
within this group to use the "Analog Input"-Block from the RTWin-
Toolbox to solve my problem.
When I compiled and let the real-time system run, the joystick always
gives a zero to the output. Very often MATLAB crashs.
Has anyone done these before?

Subject: Joystick and Simulink

From: Jan Houska

Date: 18 Apr, 2007 10:25:02

Message: 2 of 4

Hi,

Tschouns wrote:
> I posted this question before, but no one answered. Here again:
>
> I try to use a USB-Joystick (Logitech FORCE3D Pro) together with the
> Simulink "Real-Time Windows Traget". I've read
> within this group to use the "Analog Input"-Block from the RTWin-
> Toolbox to solve my problem.
> When I compiled and let the real-time system run, the joystick always
> gives a zero to the output. Very often MATLAB crashs.
> Has anyone done these before?

what version are you using? Are there any details about the crash (how
it looks like, any messages, ...)?

Jan

--
Jan Houska HUMUSOFT s.r.o.
houska@humusoft.com Pobrezni 20
http://www.humusoft.com 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740

Subject: Joystick and Simulink

From: Tschouns

Date: 18 Apr, 2007 02:05:47

Message: 3 of 4

Hi Jan

I use MATLAB Version 7.2.0.232 (R2006a)
MATLAB doesn't crashs always... when it crashs it closes itself
without any message. But I think the main problem is
that I don't get no results from the joystick input.

When I use the Virtual Reality Toolbox, the joystick just works fine.
But I've read in this group that for real time application I have to
use
the analog input...
However, have you ever done that before?

Jonas


On 18 Apr., 10:25, Jan Houska <hou...@humusoft.com> wrote:
> Hi,
>
> Tschouns wrote:
> > I posted this question before, but no one answered. Here again:
>
> > I try to use a USB-Joystick (Logitech FORCE3D Pro) together with the
> > Simulink "Real-Time Windows Traget". I've read
> > within this group to use the "Analog Input"-Block from the RTWin-
> > Toolbox to solve my problem.
> > When I compiled and let the real-time system run, the joystick always
> > gives a zero to the output. Very often MATLAB crashs.
> > Has anyone done these before?
>
> what version are you using? Are there any details about the crash (how
> it looks like, any messages, ...)?
>
> Jan
>
> --
> Jan Houska HUMUSOFT s.r.o.
> hou...@humusoft.com Pobrezni 20http://www.humusoft.com 186 00 Praha 8
> tel: ++ 420 284 011 730 Czech Republic
> fax: ++ 420 284 011 740

Subject: Joystick and Simulink

From: Jan Houska

Date: 20 Apr, 2007 16:44:41

Message: 4 of 4

Hi Jonas,

yes I have done that. Works for me, including the force-feedback. Are
you able to get at least the button status?

Jan


Tschouns wrote:
> Hi Jan
>
> I use MATLAB Version 7.2.0.232 (R2006a)
> MATLAB doesn't crashs always... when it crashs it closes itself
> without any message. But I think the main problem is
> that I don't get no results from the joystick input.
>
> When I use the Virtual Reality Toolbox, the joystick just works fine.
> But I've read in this group that for real time application I have to
> use
> the analog input...
> However, have you ever done that before?
>
> Jonas
>
>
> On 18 Apr., 10:25, Jan Houska <hou...@humusoft.com> wrote:
>
>>Hi,
>>
>>Tschouns wrote:
>>
>>>I posted this question before, but no one answered. Here again:
>>
>>>I try to use a USB-Joystick (Logitech FORCE3D Pro) together with the
>>>Simulink "Real-Time Windows Traget". I've read
>>>within this group to use the "Analog Input"-Block from the RTWin-
>>>Toolbox to solve my problem.
>>>When I compiled and let the real-time system run, the joystick always
>>>gives a zero to the output. Very often MATLAB crashs.
>>>Has anyone done these before?
>>
>>what version are you using? Are there any details about the crash (how
>>it looks like, any messages, ...)?
>>
>>Jan
>>
>>--
>>Jan Houska HUMUSOFT s.r.o.
>>hou...@humusoft.com Pobrezni 20http://www.humusoft.com 186 00 Praha 8
>>tel: ++ 420 284 011 730 Czech Republic
>>fax: ++ 420 284 011 740
>
>
>


--

--
Jan Houska HUMUSOFT s.r.o.
houska@humusoft.com Pobrezni 20
http://www.humusoft.com 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us