>
> Python doesn't have a direct interface to halcmd. Use
> commands.getoutput to execute halcmd and retrieve the output.
>
> >>> import commands
> >>> float(commands.getoutput("halcmd getp motion.spindle-speed-out"))
> 1000.0
>
> Jeff
>
Maybe we could add this to the advanced section of th
Python doesn't have a direct interface to halcmd. Use
commands.getoutput to execute halcmd and retrieve the output.
>>> import commands
>>> float(commands.getoutput("halcmd getp motion.spindle-speed-out"))
1000.0
Jeff
-
how would I go about coding the equivalent of
halcmd getp
in a Python script?
I'm writing a user-defined Mxxx code script in Python. It's started by
halui.mdi-command and should access a value from a Pyvcp widget.
thanks in advance,
-Michael
--