LXRT 3.0r4 semaphore question

Roberto Bucher roberto.bucher at supsi.ch
Wed Aug 16 07:58:22 CEST 2006


You can synchronize a RT and a non RT task using semaphore, but (I think) you 
still need the RTAI context. 6 years ago we did for example a little project 
where a Simulink block (implemented as C-Mex S-Function) contained 
a "rt_sem_wait" call. We had a separate HRT task which called "rt_sem_signal" 
and synchronized the Simulink simulation with a precise timing. This method 
allowed to do HIL in soft real-time with Simulink without using the 
(expensive) RTW add-on.

Roberto

On Tuesday 15 August 2006 19:35, patrick carosso wrote:
> Hello,
> my question is simple.
> I have:
> 1)a real-time task with a make_hard_realtime() call
> 2)a few standard pthreads.
> can a rtai semaphore or condition used to communicate
> between the real-time task and a non real-time one?
> The same: can I call rt_sem_wait() and similars from
> without the rtai context?
> Thank you!
> Patrick
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> RTAI mailing list
> RTAI at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai

-- 
University of Applied Sciences of Southern Switzerland
Dept. Innovative Technologies
CH-6928 Lugano-Manno
http://www.dti.supsi.ch/~bucher




More information about the Rtai mailing list