REALLY NEED HELP- RTW SIMULINK AND PARALLER PORT

REALLY NEED HELP- RTW SIMULINK AND PARALLER PORT

Post by Michal Wyd » Fri, 15 Mar 2002 22:32:05



I have huge problem, i need to know how i can read data from paraller
port in rtw in simulink. How write an s-function .Thank You
 
 
 

REALLY NEED HELP- RTW SIMULINK AND PARALLER PORT

Post by Jan Housk » Sat, 16 Mar 2002 17:05:36


Hi Michal,


> I have huge problem, i need to know how i can read data from paraller
> port in rtw in simulink. How write an s-function .Thank You

I've already posted this answer, but you may have missed it. Here it
goes again:

***
The Real-Time Windows Target may be an option for you. It includes
driver for the parallel port, as well as for many data acquisition
boards. Please see http://www.mathworks.com/products/rtwt for more info.
***

To add some more to that answer: if you really need to write the
S-function yourself, it may be also possible. If you are running Windows
95/98/Me, just read the parallel port using the inp() istruction. For an
example how to write a S-function that accesses hardware, please see
e.g. the file matlab\rtw\c\dos\devices\das16di.c.

On Windows NT/2000/XP things are not so easy and I'd recommend using
some ready-made solution instead.

Jan

====================================================================
Jan Houska                                           HUMUSOFT s.r.o.

http://www.humusoft.com                              180 00 Praha 8
tel: ++ 420 2 84011730                               Czech Republic
fax: ++ 420 2 84011740
====================================================================