pico-python icon indicating copy to clipboard operation
pico-python copied to clipboard

(PS3000) OSError : Error calling getTimestepFromTimebase

Open NonoLePoulet opened this issue 8 months ago • 0 comments

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.

NonoLePoulet avatar Jun 28 '24 14:06 NonoLePoulet