Re: [etherlab-users] etherlab-users Digest, Vol 136, Issue 8

2018-10-05 Thread Mohsen Alizadeh Noghani
erlab.org>
> Subject: [etherlab-users] How to check if all slaves have reached
> operational state?
>
> Dear EtherLab users,
> After activating the master and starting frame exchange, is there a way to
> check whether all states have reached operational?
> Additional info:
> Currently, in my code<
> https://github.com/mohse-n/L7N_EtherLab/blob/master/simple_test.c>, I
> just send empty frames for long enough (trial and error) so that when I
> exit the loop, my slaves (servo drives) are in OP state.
> I have tried checking the working counter in the loop and exiting from it
> after the domain's working counter becomes equal to our expected value.
> However, there is still a small delay after that happens and the second
> slave reaching operational state.
> Best,
> Mohsen
>
>
>
> ___
> etherlab-users mailing list
> etherlab-users@etherlab.org<mailto:etherlab-users@etherlab.org>
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
>
>
> --
> (bb|[^b]{2})
>
> 
>
> Helmholtz-Zentrum Berlin f?r Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher
> Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr.
> Jutta Koch-Unterseher
> Gesch?ftsf?hrung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> https://www.helmholtz-berlin.de
>
> Abonnieren Sie unseren monatlichen Newsletter!<
> https://www.helmholtz-berlin.de/aktuell/pm/newsletter/>
> Subscribe to our monthly newsletter!<
> https://www.helmholtz-berlin.de/aktuell/pm/newsletter/index_en.html>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.etherlab.org/pipermail/etherlab-users/attachments/20181005/18f507c7/attachment-0001.html
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> etherlab-users mailing list
> etherlab-users@etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
>
> --
>
> End of etherlab-users Digest, Vol 136, Issue 8
> **
>
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


[etherlab-users] Xenomai vs. RTAI+RTDM

2018-10-05 Thread Mohsen Alizadeh Noghani
Hello everyone.
It seems to me that for executing hard real-time programs alongside
userspace applications (e.g. a GUI), there are two possibilities: Xenomai
and RTAI+RTDM.
("Vanilla" RTAI programs are kernel modules so I think using a GUI
alongside it is out of the picture.).
How do these two options compare with each other in terms of
1- Performance?
2- Ease of use and support in this community?
Best,
Mohsen
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Re: [etherlab-users] How to check if all slaves have reached operational state?

2018-10-05 Thread Christoph Schroeder

Hi Mohsen,

additionally you can use ecrt_slave_config_state in your application. I call 
this function plus ecrt_master_state and ecrt_domain_state every other second 
to check the status of the whole setup.

Best regards,
Christoph

On 10/4/18 11:15 PM, Ian Prochazka wrote:
Would user command from OS console give you the answer:

x@x::~$ ethercat slaves



The ethercat commands can be used while your application is running. Try 
'ethercat --help' for other options



Best regards,

Ian




From: etherlab-users 
[etherlab-users-boun...@etherlab.org] On 
Behalf Of Mohsen Alizadeh Noghani [m.aliza...@gmail.com]
Sent: Thursday, October 04, 2018 3:06 AM
To: etherlab-users@etherlab.org
Subject: [etherlab-users] How to check if all slaves have reached operational 
state?

Dear EtherLab users,
After activating the master and starting frame exchange, is there a way to 
check whether all states have reached operational?
Additional info:
Currently, in my 
code, I just 
send empty frames for long enough (trial and error) so that when I exit the loop, my 
slaves (servo drives) are in OP state.
I have tried checking the working counter in the loop and exiting from it after 
the domain's working counter becomes equal to our expected value. However, 
there is still a small delay after that happens and the second slave reaching 
operational state.
Best,
Mohsen



___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users



--
(bb|[^b]{2})



Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. 
Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

https://www.helmholtz-berlin.de

Abonnieren Sie unseren monatlichen 
Newsletter!
Subscribe to our monthly 
newsletter!
___
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users