Search found 5 matches

by bzy
Thu Jun 08, 2023 2:30 am
Forum: General Software Discussions
Topic: Sampling rate problem when using picosdk library of Python
Replies: 6
Views: 3285

Re: Sampling rate problem when using picosdk library of Python

By the way, I tried streaming mode and set
sampleInterval = ctypes.c_int32(50) #50 us
sampleUnits = ps.PS4000A_TIME_UNITS['PS4000A_US'] # unis is us
It got correct sine waveform.
by bzy
Thu Jun 08, 2023 2:18 am
Forum: General Software Discussions
Topic: Sampling rate problem when using picosdk library of Python
Replies: 6
Views: 3285

Re: Sampling rate problem when using picosdk library of Python

You are correct a timebase of 3999 should give a sampling speed of 20000Samples/sec for a 4425A I am not in the office and don't have that device to hand so can't check. I would suggest trying to set this up in PicoScope 7 and see what you get, the rule of thumb is that if it works in PicoScope the...
by bzy
Wed Jun 07, 2023 8:57 am
Forum: General Software Discussions
Topic: Sampling rate problem when using picosdk library of Python
Replies: 6
Views: 3285

Re: Sampling rate problem when using picosdk library of Python

@Martyn
Hi Martyn,
Could you please help me to comfirm the timebase value?
if use 20000Hz sampling frequency, What the value of the timebase should be? by using picoscope 4425A.
Or I need to adjust some parameters else?
by bzy
Tue Jun 06, 2023 8:13 am
Forum: General Software Discussions
Topic: Sampling rate problem when using picosdk library of Python
Replies: 6
Views: 3285

Sampling rate problem when using picosdk library of Python

Now I have a picoscope 4425A device, I copied the code by following the python example of github and want to run block mode. As the equation of sampling rate in picoscope-4000-series-a-api-programmers-guide.pdf, Sampling frequency (fS) = 80 MHz / (timebase+1), I want to set frequency as 20000Hz, so ...
by bzy
Thu Feb 23, 2023 3:08 am
Forum: General Software Discussions
Topic: How to set resolution enhancement by using Python --Picoscope 4425A
Replies: 3
Views: 7422

How to set resolution enhancement by using Python --Picoscope 4425A

@Neil
I am tring to set resolution enhancement of channel B as 16bits by using Python,
Could please give me an example code to set it?
I tried to use ps4000aOpenUnitWithResolution, but I can not figure out how to define PS4000A_DEVICE_RESOLUTION.