demo/aout: support also samples with only one channel
[pycomedi.git] / .be / bugs / 88a58ed8-0fd9-4963-adb0-dcf6b842f2cc / comments / 9b70d421-62c0-47ce-b648-93afb6a988f6 / body
1 adding a
2   print phys, type(phys)
3 to phys_to_comedi reveals:
4
5 In [1]: import unfold, calibcant.calibrate, z_piezo_utils, numpy
6
7 In [2]: u=unfold.unfold(controlTemp=False)
8 6.74763832659 <type 'float'>
9 -6.74763832659 <type 'float'>
10 0.0 <type 'float'>
11 2.94117647059 <type 'float'>
12 -2.94117647059 <type 'float'>
13 0.00735294117647 <type 'float'>
14 0.0 <type 'float'>
15 0.0 <type 'float'>
16 0.0 <type 'float'>
17
18 In [3]: rates = exp(numpy.linspace(log(250), log(1000), 2))
19
20 In [4]: for i in range(10) :
21    ...:     for nmPsRate in rates :
22    ...:         u.unfold(nmPsRate=nmPsRate, rel_setpoint=1, nmDist=800, sBindTime=4)
23    ...:         u.xpWander()
24    ...:         
25    ...:         
26 setpoint = 0.850004
27 approaching
28 0.850003814755 <type 'float'>
29 0.850003814755 <type 'float'>
30 0.850003814755 <type 'float'>
31 0.850003814755 <type 'float'>
32 None <type 'NoneType'>
33 None <type 'NoneType'>
34 ---------------------------------------------------------------------------
35 <type 'exceptions.TypeError'>             Traceback (most recent call last)
36 ...
37