-
LinuxCNC
-
General LinuxCNC Questions
-
HAL
HAL
Less
More
-
Posts: 1
-
Thank you received: 0
-
-
23 Jan 2017 05:52 #86458
by big
Hello
I am trying to store the value of a HAL pin or a HAL parameter in a bash variable so i could use in other programs like a python function but i don't know how to ! can anyone help please ?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 23536
-
Thank you received: 4852
-
-
23 Jan 2017 11:22 #86470
by andypugh
bash can get the value with the "halcmd" cmd:
S = $(halcmd getp motion.spindle-speed-out)
(Maybe, bash is not my strong suit, and I am on a windows machine)
Please Log in or Create an account to join the conversation.
-
LinuxCNC
-
General LinuxCNC Questions
-
HAL
Time to create page: 0.062 seconds