Skip to content

Commit 9d27780

Browse files
authored
Merge pull request #34 from fossasia/development
merge from development
2 parents 15c751f + b345834 commit 9d27780

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

PSL/sciencelab.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ def __runInitSequence__(self,**kwargs):
211211
self.__print__( b,poly)
212212
self.aboutArray.append([b]+['%.3e'%v for v in poly])
213213
polyDict[a[:3]].append(poly)
214-
215214

216215
#Load calibration data (slopes and offsets) for ADC channels
217216
inl_slope_intercept=struct.unpack('2f',inl_slope_intercept)
@@ -367,7 +366,7 @@ def capture1(self,ch,ns,tg,*args,**kwargs):
367366
tg Timegap between samples in microseconds
368367
============== ============================================================================================
369368
370-
.. figure:: ../images/capture1.png
369+
.. figure:: images/capture1.png
371370
:width: 11cm
372371
:align: center
373372
:alt: alternate text
@@ -404,7 +403,7 @@ def capture2(self,ns,tg,TraceOneRemap='CH1'):
404403
TraceOneRemap Choose the analog input for channel 1. It is connected to CH1 by default. Channel 2 always reads CH2.
405404
============== =======================================================================================================
406405
407-
.. figure:: ../images/capture2.png
406+
.. figure:: images/capture2.png
408407
:width: 11cm
409408
:align: center
410409
:alt: alternate text
@@ -457,7 +456,7 @@ def capture4(self,ns,tg,TraceOneRemap='CH1'):
457456
TraceOneRemap Choose the analog input for channel 1. It is connected to CH1 by default. Channel 2 always reads CH2.
458457
============== ======================================================================================================
459458
460-
.. figure:: ../images/capture4.png
459+
.. figure:: images/capture4.png
461460
:width: 11cm
462461
:align: center
463462
:alt: alternate text
@@ -763,7 +762,7 @@ def capture_traces(self,num,samples,tg,channel_one_input='CH1',CH123SA=0,**kwarg
763762
764763
.. _adc_example:
765764
766-
.. figure:: ../images/transient.png
765+
.. figure:: images/transient.png
767766
:width: 11cm
768767
:align: center
769768
:alt: alternate text
@@ -2584,6 +2583,7 @@ def capacitance_via_RC_discharge(self):
25842583
RC = self.__capture_capacitance__(samples,int(T/samples))[3][1]
25852584
return RC/10e3
25862585
else:
2586+
self.__print__('cap out of range %f %f'%(T,cap))
25872587
return 0
25882588
except Exception as e:
25892589
self.__print__(e)
@@ -3872,6 +3872,7 @@ def servo4(self,a1,a2,a3,a4):
38723872
"""
38733873
Operate Four servo motors independently using SQR1, SQR2, SQR3, SQR4.
38743874
tested with SG-90 9G servos.
3875+
For high current servos, please use a different power source, and a level convertor for the PWm output signals(if needed)
38753876
38763877
.. tabularcolumns:: |p{3cm}|p{11cm}|
38773878
@@ -3971,6 +3972,7 @@ def estimateDistance(self):
39713972
except Exception as ex:
39723973
self.raiseException(ex, "Communication Error , Function : "+inspect.currentframe().f_code.co_name)
39733974

3975+
"""
39743976
def TemperatureAndHumidity(self):
39753977
'''
39763978
init AM2302.
@@ -3984,6 +3986,7 @@ def TemperatureAndHumidity(self):
39843986
except Exception as ex:
39853987
self.raiseException(ex, "Communication Error , Function : "+inspect.currentframe().f_code.co_name)
39863988
self.digital_channels_in_buffer=1
3989+
"""
39873990

39883991
def opticalArray(self,SS,delay,channel = 'CH3',**kwargs):
39893992
'''
@@ -4081,5 +4084,5 @@ def raiseException(self,ex, msg):
40814084
I.get_average_voltage('CH1')
40824085
""")
40834086
#I=connect(verbose = True)
4084-
#print (I.get_capacitance())
4087+
#for a in range(20):print (I.get_capacitance())
40854088
#I=connect(verbose=True,load_calibration=False)

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ To set up the development environment, install the packages mentioned in depende
7272
### Blog posts related to PSLab on FOSSASIA blog
7373
* [Installation of PSLab](http://blog.fossasia.org/pslab-code-repository-and-installation/)
7474
* [Communicating with PSLab](http://blog.fossasia.org/communicating-with-pocket-science-lab-via-usb-and-capturing-and-plotting-sine-waves/)
75+
* [Features and Controls of PSLab](http://blog.fossasia.org/features-and-controls-of-pocket-science-lab/)
76+
* [Design your own Experiments](http://blog.fossasia.org/design-your-own-experiments-with-pslab/)
7577
* [New Tools and Sensors for Fossasia PSLab and ExpEYES](http://blog.fossasia.org/new-tools-and-sensors-fossasia-pslab-and-expeyes/)

0 commit comments

Comments
 (0)