colinoflynn / pico-python

PicoScope Python Interface
Other
102 stars 79 forks source link

(PS3000) OSError : Error calling getTimestepFromTimebase #203

Open NonoLePoulet opened 4 months ago

NonoLePoulet commented 4 months ago

Hello.

For a project, i need to use a picoscope 3000 to aquire data, via a python script.

My code looks a little bit like this : ` from picoscope.ps3000 import PS3000

ps = PS300()

tsprate = 100e-3 winduration 100e3 size = int(tsprate * winduration)

sprate , msize = ps.setSamplingFrequency(tsprate,size) `

When trying to run this, i get met with : ` File "C:\Users\User\Anaconda3\lib\site-packages\picoscope\ps3000.py", line 327, in checkResult raise IOError('Error calling%s' % (inspect.stack()[1][3])

OSError: Error calling getTimestepFromTimebase `

Any help would be very appreciated, thanks.