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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to