Forgot to mention what has cost me a lot of time in the past.

IIRC then in python ‘import hal’ imports the ‘legacy’ LCNC python bindings.

If you use ‘from machinekit import hal’ then you use the Machinekit cython 
generated bindings.

If I’m not right about this I hope to get corrected.

 

From: machinekit@googlegroups.com <machinekit@googlegroups.com> On Behalf Of 
b...@basdebruijn.com
Sent: Tuesday, 19 May 2020 09:51
To: 'Michael Brown' <mib.holotro...@gmail.com>; 'Machinekit' 
<machinekit@googlegroups.com>
Subject: RE: [Machinekit] Re: halcmd setp equivalent in python

 

The Cython bindings do not support Params. I do not know about the original 
python bindings that came from the LCNC fork.

If you have a pin (not param), then you can set it with 
hal.Pin(‘pinname’).set(value)

If the params are needed in a python program, the best way would be to change 
the params to pins in the components source.

-- 
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 machinekit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/017b01d62db2%24e85b6260%24b9122720%24%40basdebruijn.com.

Reply via email to