- Posts: 238
- Thank you received: 0
Read varible of hal componet for Python 3
- TheRoslyak
- Topic Author
- Offline
- Elite Member
-
Less
More
5 years 8 months ago #199414
by TheRoslyak
Read varible of hal componet for Python 3 was created 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!!!
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.
5 years 8 months ago #199444
by cmorley
Replied by cmorley on topic Read varible of hal componet for Python 3
After compiling to use python 3 ,use the python HAL module.
Please Log in to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 238
- Thank you received: 0
5 years 8 months ago #199446
by TheRoslyak
Replied by TheRoslyak on topic Read varible of hal componet for Python 3
Can you give Hello world for this.(To read values already created variables.)
I found only examples to create hal-compotent.
I found only examples to create hal-compotent.
Please Log in to join the conversation.
5 years 8 months ago #199482
by phillc54
Replied by phillc54 on topic Read varible of hal componet for Python 3
Please Log in to join the conversation.
- TheRoslyak
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 238
- Thank you received: 0
5 years 8 months ago #199503
by TheRoslyak
Replied by TheRoslyak on topic Read varible of hal componet for Python 3
On python3 don't work. Or may be I'm stupid?)
UPD library HAL for python3 It's different (AI engine bla bla bla)
UPD library HAL for python3 It's different (AI engine bla bla bla)
Please Log in to join the conversation.
5 years 8 months ago #199508
by phillc54
Replied by phillc54 on topic Read varible of hal componet for Python 3
Was LinuxCNC built with python3?
Please Log in to join the conversation.
5 years 6 months ago #205328
by elisa
Replied by elisa on topic Read varible of hal componet for Python 3
Hi!
Did you find a solution?
I would like to do the same thing but I am trouble with hal.get_value()...
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
