@@ -211,7 +211,6 @@ def __runInitSequence__(self,**kwargs):
211
211
self .__print__ ( b ,poly )
212
212
self .aboutArray .append ([b ]+ ['%.3e' % v for v in poly ])
213
213
polyDict [a [:3 ]].append (poly )
214
-
215
214
216
215
#Load calibration data (slopes and offsets) for ADC channels
217
216
inl_slope_intercept = struct .unpack ('2f' ,inl_slope_intercept )
@@ -367,7 +366,7 @@ def capture1(self,ch,ns,tg,*args,**kwargs):
367
366
tg Timegap between samples in microseconds
368
367
============== ============================================================================================
369
368
370
- .. figure:: ../ images/capture1.png
369
+ .. figure:: images/capture1.png
371
370
:width: 11cm
372
371
:align: center
373
372
:alt: alternate text
@@ -404,7 +403,7 @@ def capture2(self,ns,tg,TraceOneRemap='CH1'):
404
403
TraceOneRemap Choose the analog input for channel 1. It is connected to CH1 by default. Channel 2 always reads CH2.
405
404
============== =======================================================================================================
406
405
407
- .. figure:: ../ images/capture2.png
406
+ .. figure:: images/capture2.png
408
407
:width: 11cm
409
408
:align: center
410
409
:alt: alternate text
@@ -457,7 +456,7 @@ def capture4(self,ns,tg,TraceOneRemap='CH1'):
457
456
TraceOneRemap Choose the analog input for channel 1. It is connected to CH1 by default. Channel 2 always reads CH2.
458
457
============== ======================================================================================================
459
458
460
- .. figure:: ../ images/capture4.png
459
+ .. figure:: images/capture4.png
461
460
:width: 11cm
462
461
:align: center
463
462
:alt: alternate text
@@ -763,7 +762,7 @@ def capture_traces(self,num,samples,tg,channel_one_input='CH1',CH123SA=0,**kwarg
763
762
764
763
.. _adc_example:
765
764
766
- .. figure:: ../ images/transient.png
765
+ .. figure:: images/transient.png
767
766
:width: 11cm
768
767
:align: center
769
768
:alt: alternate text
@@ -2584,6 +2583,7 @@ def capacitance_via_RC_discharge(self):
2584
2583
RC = self .__capture_capacitance__ (samples ,int (T / samples ))[3 ][1 ]
2585
2584
return RC / 10e3
2586
2585
else :
2586
+ self .__print__ ('cap out of range %f %f' % (T ,cap ))
2587
2587
return 0
2588
2588
except Exception as e :
2589
2589
self .__print__ (e )
@@ -3872,6 +3872,7 @@ def servo4(self,a1,a2,a3,a4):
3872
3872
"""
3873
3873
Operate Four servo motors independently using SQR1, SQR2, SQR3, SQR4.
3874
3874
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)
3875
3876
3876
3877
.. tabularcolumns:: |p{3cm}|p{11cm}|
3877
3878
@@ -3971,6 +3972,7 @@ def estimateDistance(self):
3971
3972
except Exception as ex :
3972
3973
self .raiseException (ex , "Communication Error , Function : " + inspect .currentframe ().f_code .co_name )
3973
3974
3975
+ """
3974
3976
def TemperatureAndHumidity(self):
3975
3977
'''
3976
3978
init AM2302.
@@ -3984,6 +3986,7 @@ def TemperatureAndHumidity(self):
3984
3986
except Exception as ex:
3985
3987
self.raiseException(ex, "Communication Error , Function : "+inspect.currentframe().f_code.co_name)
3986
3988
self.digital_channels_in_buffer=1
3989
+ """
3987
3990
3988
3991
def opticalArray (self ,SS ,delay ,channel = 'CH3' ,** kwargs ):
3989
3992
'''
@@ -4081,5 +4084,5 @@ def raiseException(self,ex, msg):
4081
4084
I.get_average_voltage('CH1')
4082
4085
""" )
4083
4086
#I=connect(verbose = True)
4084
- #print (I.get_capacitance())
4087
+ #for a in range(20): print (I.get_capacitance())
4085
4088
#I=connect(verbose=True,load_calibration=False)
0 commit comments