Read varible of hal componet for Python 3

More
5 years 8 months ago #199414 by TheRoslyak
Hi everyone
How I can read varible of hal componet
Now I use thread for
os.popen("halcmd getp axis.x.pos-cmd").read()
Perhaps there is an easier way?
Only Python 3!!!

Please Log in to join the conversation.

More
5 years 8 months ago #199444 by cmorley
After compiling to use python 3 ,use the python HAL module.

Please Log in to join the conversation.

More
5 years 8 months ago #199446 by TheRoslyak
Can you give Hello world for this.(To read values already created variables.)
I found only examples to create hal-compotent.

Please Log in to join the conversation.

More
5 years 8 months ago #199482 by phillc54

Please Log in to join the conversation.

More
5 years 8 months ago #199503 by TheRoslyak
On python3 don't work. Or may be I'm stupid?)

UPD library HAL for python3 It's different (AI engine bla bla bla)

Please Log in to join the conversation.

More
5 years 8 months ago #199508 by phillc54
Was LinuxCNC built with python3?

Please Log in to join the conversation.

More
5 years 6 months ago #205328 by elisa
Hi!

Did you find a solution?

I would like to do the same thing but I am trouble with hal.get_value()...

Please Log in to join the conversation.

Time to create page: 0.196 seconds
Powered by Kunena Forum