def setUp(self): bliss.load_cfg_fromstring(config_xml)
import time sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) import bliss import bliss.common.log as elog elog.level(10) xml_config = """ <config> <controller class="VSCANNER"> <serial_line value = "/dev/ttyS0" /> <axis name="px"> <chan_letter value="X"/> <velocity value="0" /> <steps_per_unit value="1" /> </axis> </controller> </config> """ bliss.load_cfg_fromstring(xml_config) my_axis = bliss.get_axis("px") while True: for ii in range(10): print ii time.sleep(0.4) my_axis.move(ii)
def setUp(self): bliss.load_cfg_fromstring(config_xml % (hostname, address, address2))
def setUp(self): # elog.level(10) bliss.load_cfg_fromstring(config_xml)
def setUp(self): bliss.load_cfg_fromstring(config_xml) self.grp = bliss.Group(bliss.get_axis("robz"), bliss.get_axis("robz2"), bliss.get_axis("roby"))