4824A Sample interval trouble with python

Post general discussions on using our drivers to write your own software here
Post Reply
mhkim0908
Newbie
Posts: 0
Joined: Sun Aug 20, 2023 2:17 pm

4824A Sample interval trouble with python

Post by mhkim0908 »

Hi.
I want to use the Picoscope 4824A via PicoSDK and Python.
I'm following the Streaming mode example, but I'm having trouble setting the sample interval.
When I use the Picoscope 7 T&M Application or look up the datasheet, the minimum sample interval that can be set is 12.5ns, but when I try to use the Streaming mode using Python, the sample interval works properly from 50ns, and the error "PICO_INVALID_SAMPLE_INTERVAL" occurs at 12.5 or 25ns.

There is another question.
I know that 4824A is a 12bit ADC, so I'm wondering why the maxADC.value returned by ps4000aMaximumValue() function is 32767 instead of 2^12 = 4096. If it is -32767 ~ 32767, it is 16bit, right?

I'll look forward to your answer.

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: 4824A Sample interval trouble with python

Post by bennog »

In streaming mode your are limited to the maximum speed of the USB bus not the limit of the scope.
because all data is in realtime transmitted over the USB bus. (internal memory is used for short hickups int the transmission) See scope specs for max streaming sample rate.

The ADC values are factory calibrated for each scope to a range of around +/- 32000 (not 32768)
The value 32768 0x7FFF and 0x8000 are used to signal overflow of the measurement.

Benno

Martyn
Site Admin
Site Admin
Posts: 4501
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: 4824A Sample interval trouble with python

Post by Martyn »

Check how many channels you have enabled

80 MS/s max. for a single channel using PicoSDK. 160 MS/s total across all channels.
Martyn
Technical Support Manager

Post Reply