Esempio n. 1
0
# -*- coding: utf-8 -*-

from pyacq import FakeMultiSignals

print FakeMultiSignals.get_available_devices().values()[0]

from .configure import _params_options, _params_rec_on_trigger
import pyacq.gui.guiutil.mypyqtgraph as mypg
import pyqtgraph as pg

p = pg.parametertree.Parameter.create(name='options',
                                      type='group',
                                      children=_params_options)
options = mypg.get_dict_from_group_param(p)
print options
p = pg.parametertree.Parameter.create(name='rec_on_trigger',
                                      type='group',
                                      children=_params_rec_on_trigger)
rec_on_trigger = mypg.get_dict_from_group_param(p)

default_setup = {
    'devices': [FakeMultiSignals.get_available_devices().values()[0]],
    'views': [
        {
            'class': 'Oscilloscope',
            'name': 'Oscilloscope',
            'device_num': 0,
            'subdevice_num': 0,
            'params': {}
        },
    ],
def test1():
    
    for name, info_device in FakeMultiSignals.get_available_devices().items():
        print name
        print info_device
# -*- coding: utf-8 -*-

from pyacq import FakeMultiSignals
print FakeMultiSignals.get_available_devices().values()[0]

from .configure import _params_options, _params_rec_on_trigger
import  pyacq.gui.guiutil.mypyqtgraph as mypg
import pyqtgraph as pg
p = pg.parametertree.Parameter.create(name='options', type='group', children=_params_options)
options = mypg.get_dict_from_group_param(p)
print options
p = pg.parametertree.Parameter.create(name='rec_on_trigger', type='group', children=_params_rec_on_trigger)
rec_on_trigger = mypg.get_dict_from_group_param(p)

default_setup = {
    'devices' : [ FakeMultiSignals.get_available_devices().values()[0] ],
    'views' : [
        {
            'class' : 'Oscilloscope',
            'name' : 'Oscilloscope',
            'device_num' : 0,
            'subdevice_num' : 0,
            'params' : {
            
            }
        },
    ],
    'options' : options,
    'rec_on_trigger' : rec_on_trigger,