Thread Subject: Matlab Interrupt

Subject: Matlab Interrupt

From: Stephan

Date: 12 Aug, 2009 10:35:20

Message: 1 of 1

Hi there

I'm programming a GUI in Matlab. With this GUI, I'm steering an electrical table with some engines to move the table towards x- and y- position. There is also a joystick connected directly to the table, with which you can steer the table as well. The point is: I want to know in Matlab if the table position is changed by the joystick. In my oppinion, there are two possibelities to do this:

1. Software interrupt: With the command "?pos" sent over the RS232 interface, you can ask the current table position. If the position changes, the table is moving. Is it possible to do this in a loop as a kind of a background-task? That means, I generate a task where I have a loop where I always ask if the position is changing. If yes, I call a function...

2. Hardware interrupt: I can generate a trigger signal from the table via the RS232 interface. Is it possible to execute a Matlab-function with a hardware interrupt?

Tnx for your answers
Stephan

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
software interrupt Stiphu 12 Aug, 2009 06:39:21
hardware interrupt Stiphu 12 Aug, 2009 06:39:21
background task Stiphu 12 Aug, 2009 06:39:21
rssFeed for this Thread

Contact us at files@mathworks.com