Example #1
0
 def setUp(self):
     bliss.load_cfg_fromstring(config_xml)
Example #2
0
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)
Example #3
0
 def setUp(self):
     bliss.load_cfg_fromstring(config_xml)
Example #4
0
 def setUp(self):
     bliss.load_cfg_fromstring(config_xml % (hostname, address, address2))
Example #5
0
 def setUp(self):
     # elog.level(10)
     bliss.load_cfg_fromstring(config_xml)
Example #6
0
 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"))
Example #7
0
 def setUp(self):
     bliss.load_cfg_fromstring(config_xml % (hostname, address, address2))
Example #8
0
 def setUp(self):
     # elog.level(10)
     bliss.load_cfg_fromstring(config_xml)