HAL
- big
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
23 Jan 2017 05:52 #86458
by big
HAL was created 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 ?
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.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23323
- Thank you received: 4948
23 Jan 2017 11:22 #86470
by andypugh
Replied by andypugh on topic HAL
bash can get the value with the "halcmd" cmd:(Maybe, bash is not my strong suit, and I am on a windows machine)
S = $(halcmd getp motion.spindle-speed-out)
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds