bnjmnp / pysoem

Cython wrapper for the Simple Open EtherCAT Master Library
MIT License
96 stars 37 forks source link

On Windows, after master.config_init() a short sleep() has to be done #52

Open rako233 opened 2 years ago

rako233 commented 2 years ago

I tried to use the pysoem on Python 3.10 and 3.9 for Windows but the issue was the same, when not having a sleep(0.1) after master.config_init() the results are garbage. On Linux this is not an issue.

bnjmnp commented 2 years ago

Hi. Do you like to share more context on this? For example what your script is doing right after the config_init(), what the error looks like, or maybe even more... Here and there sleeps can help, maybe sometimes an increased timeout will do the same.

rako233 commented 2 years ago

I did this and a Timeout didn't helped

  def open(self, interface) : 
        self.master.open(self.interface)
        if self.master.config_init() > 0 :
            sleep(0.1)
        else:
            raise EthercatException()
bnjmnp commented 6 months ago

Hi @rako233, I would like to leave this as a hint for users but close this issue, are you okay with that?