LXRT 3.0r4 semaphore question
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.
On Tuesday 15 August 2006 19:35, patrick carosso wrote:
> 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!
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> RTAI mailing list
> RTAI at rtai.org
University of Applied Sciences of Southern Switzerland
Dept. Innovative Technologies
More information about the Rtai