Thank you so much Bas, indeed we forgot to add the write and watchdog functions to our thread!
Best regards Dennis Am Mittwoch, 28. November 2018 16:19:56 UTC+1 schrieb Bas de Bruijn: > > > > On 28 Nov 2018, at 15:01, [email protected] <javascript:> wrote: > > Hello everyone, > we have the following problem with machinekit (latest version from > repositories, debian stretch): > > If we launch machinekit with an original (linuxcn-style) HAL-file: > > loadrt hostmot2 > loadrt hm2_pci config=" num_encoders=1 num_stepgens=4 > sserial_port_0=00xxxxxx " > > we can read out a 7i76-daughterboard digital in pin via halmeter. > > On the other hand, if we use a python-HAL: > > rt.loadrt('hostmot2') > rt.loadrt('hm2_pci', config=' num_encoders=1 num_stepgens=4 > sserial_port_0=00xxxxxx') > > halmeter shows the pins, but they show only false, regardless of the > actual input value. > > > Which pins are that? > > What does `halcmd show pin hm2_5i25.0` say? > > Do you have any ideas? > > > Have you inspected /var/log/linuxcnc.log after setting `export DEBUG=5` in > the terminal you run your python file? > > Have you added the read, write and pet_watchdog functions to your thread? > > Have you started the thread? > > Bas > > > Best regards > Dennis > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
