Dear Mr. Hacker,

Thank you for your reply. I package the operation of creating real-time 
xenomai ethercat thread and slave configuration into a dynamic library 
and call it to start ethercat communication in my Qt GUI process. But, 
the MSW of this real-time ethercat thread just increases one or two 
when 
latency of ecrt_master_receive occurs and MSW does not constantly 
increases.  The xenomai page fault and the big latency of 
calling 
ecrt_master_receive seems occurs at the same time.
Do you mean I should create a new process in GUI and call my dynamic
library to start the real-time ethercat thread in the new process instead 
of 
in GUI process ?  Is my understanding correct ?


Best regards,
Zhou Yang




------------------ 原始邮件 ------------------
发件人:                                                                            
                                            "Richard Hacker"                    
                                                                
<h...@igh.de&gt;;
发送时间:&nbsp;2021年3月11日(星期四) 晚上6:06
收件人:&nbsp;"etherlab-users"<etherlab-users@etherlab.org&gt;;
抄送:&nbsp;"zy"<zhouyoung1...@qq.com&gt;;
主题:&nbsp;Re: [Etherlab-users] ecrt_master_receive big latency



Dear Zhou

On 2021-03-11 08:15, zy wrote:
&gt; page fault. I alse execute “cat /proc/xenomai/stat” and find MSW of the 
Page faults and real time execution will never become friends. Running a 
user space application like Qt together with a real time thread in the 
same process almost certainly leads to problems. You need to separate it 
out into a process running your GUI and another running in real-time, 
with mlockall() and the works.


Mit freundlichem Gruß

Richard Hacker

-- 
------------------------------------------------------------------------

Richard Hacker M.Sc.
richard.hac...@igh.de
Tel.: +49 201 / 36014-16

Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH
Nordsternstraße 66
D-45329 Essen

Amtsgericht Essen HRB 11500
USt-Id.-Nr.: DE 174 626 722
Geschäftsführung:
- Dr.-Ing. Siegfried Rotthäuser
- Dr. Sven Beermann, Prokurist
Tel.: +49 201 / 360-14-0
http://www.igh.de

------------------------------------------------------------------------
-- 
Etherlab-users mailing list
Etherlab-users@etherlab.org
https://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to