Commit 66d3547f authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho Committed by Jose Tiago Macara Coutinho
Browse files

scan: support temperature channels as counters

parent 564b3009
......@@ -22,6 +22,7 @@ import numpy
import gevent
from bliss import setup_globals
from bliss.common.temperature import Input, Output, TempControllerCounter
from bliss.common.task_utils import *
from bliss.common.motor_group import Group
from bliss.common.measurement import CounterBase
......@@ -88,6 +89,9 @@ def default_chain(chain, scan_pars):
read_cnt_handler = dict()
for cnt in set(counters):
if isinstance(cnt, (Input, Output)):
cnt = TempControllerCounter(cnt.name, cnt)
if isinstance(cnt, CounterBase):
try:
read_all_handler = cnt.read_all_handler()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment