Python interface states of the home switches?

More
24 Jun 2019 13:38 #137736 by pl7i92
spindle means world wide differencet in many languageses it is a tread
like SFU2005 or Tr12x3

Rod is right you become very fast into the system im in since oktober 2018
and now as on the 60th mashine build you become very fast to errors
the first errors on new freshmen and system change 10.04 /Lcnc2.5 to 2.7.14 and now to 2.9 stretch is quite fast solution

i need to Quote as on Plasmac and or qtpyvcp panes im not getting any error at all widgets can not load
or tcl missling

as of rod and phils advice i will wait to convert the shop plasmas (now 5 Mashines) till the master is up and there is a iso that makes all itself
gnipsel install fails as of germany depencies not retchabel and tcl not to be installed

Please Log in or Create an account to join the conversation.

More
24 Jun 2019 23:59 #137761 by rodw

Whats a spindle for instance!


Here you go: spindle. The definition of a spindle is a thin rod used for spinning, or a yarn measurement. An example of a spindle is what sewing thread is spun around. An example of a spindle is 15,120 yards of cotton yarn.
:evil:


Now I know why my surname means Weaver! Its all about the spindle! B) B) B)

Please Log in or Create an account to join the conversation.

More
26 Jun 2019 02:54 #137853 by lorenzn
Looking for an equivalent to (parameter value):
setp edge.scope.10.in-edge 0

I don't see a corresponding hal.set_value(). hal.set_p() operates only on pins. For now I'll use subprocess:
        edge = '{}.{}'.format(edgename, pincount)
        if inedge == 'rising':
            subprocess.call('halcmd setp {}.in-edge 0'.format(edge), shell=True)
            #hal.set_p('{}.in-edge', '0')  #fails only for pins
        else:
            subprocess.call('halcmd setp {}.in-edge 1'.format(edge), shell=True)

Please Log in or Create an account to join the conversation.

More
26 Jun 2019 03:22 #137855 by cmorley
looks like your code is wrong.
try:
hal.set_p('{}.in-edge'.format(edge), '0')

Chris M

Please Log in or Create an account to join the conversation.

More
26 Jun 2019 03:31 #137857 by lorenzn
ah so it does work with parameters. Thanks once again for handing me the solution on a platter!

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum