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

New to MATLAB?

Thread Subject:
HOW TO USE SERIAL PORTS / Mouse input into simulation

Subject: HOW TO USE SERIAL PORTS / Mouse input into simulation

From: Tobi Delbruck

Date: 17 Mar, 1999 01:16:02

Message: 1 of 1

i got some routines called portcom via the matlab site.

here is part of the matlab solution # 5283 that has the pointer

DSP Technology has made a file available at the following URL:

they work, you have to setup the port using the dos "mode" command,
as in
mode com1: baud=9600 parity=e data=8
before you use the portcom mex file


polvo wrote:

> My question is somewhat related to this subject...
> I would like to read (x,y) values from mouse and feed it into a simulink
> model, in real time (not a complex model).
> Any one knows a way to do it ???
> (x,y could be ailerons and elevator controls for an aircraft model, thus
> allowing to manually fly a flight simulator running in matlab!)
> Looking forward to hear some ideas,
> Luis Sebastiao (
> Chris Kmiecik wrote:
> > In case you haven't found a response to your e-mail of long ago, I do
> > have routines to access the serial port under Windows for Workgroups.
> > I am still trying to complete similar MATLAB calls under Windows NT.

Tobi Delbruck
Institute for Neuroinformatics, UniZ/ETHZ
Winterhurerstr. 190
8057 Zurich, Switzerland
phone +41 1/635 30 38 fax +41 1/635 30 53

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