RunStreaming invalid sample interval

Post general discussions on using our drivers to write your own software here
Post Reply
cpc333
Newbie
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm

RunStreaming invalid sample interval

Post by cpc333 » Wed Apr 17, 2013 7:44 am

Hello,

I am trying to stream data from both channels of a Picoscope 4227 with version 1.1.0.288 of the dll and using Python. I try to run

Code: Select all

sampleInterval = ctypes.c_ulong()
sampleInterval.value = 32
PS4000_NS = 2
ps4000RunStreaming( handle, ctypes.byref(sampleInterval), PS4000_NS, 0, 101372, 0, 1, 101372 )


But I get error "0x2B: PICO_INVALID_SAMPLE_INTERVAL. The sample interval selected for streaming is out of range." ... 32ns is 31.25MHz which should be fine I think.

Thanks,
-Pat

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

Re: RunStreaming invalid sample interval

Post by Martyn » Wed Apr 17, 2013 8:56 am

150ns is the fastest sample interval you can use for streaming with the 4227, hence the error message you are getting.
Martyn
Technical Support Manager

cpc333
Newbie
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm

Re: RunStreaming invalid sample interval

Post by cpc333 » Wed Apr 17, 2013 4:02 pm

So it's not possible to stream at 31.25MHz? How does picoscope 6 do it? I seem to be able to stream at up to 125MHz with two channels.

Thanks!

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

Re: RunStreaming invalid sample interval

Post by Martyn » Thu Apr 18, 2013 12:33 pm

Are you sure that you are streaming in Picoscope, this would be for 100ms/div or slower timebases depending on the slow sampling transition time, and is restircted to 1MS/s for the release version and upto 10MS/s for the beta version. It sounds as if it may be block mode, using the scopes memory, and repeating after each complete block.
Martyn
Technical Support Manager

cpc333
Newbie
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm

Re: RunStreaming invalid sample interval

Post by cpc333 » Fri Apr 19, 2013 8:26 pm

Ya, I guess it could be block mode. It just seemed so fast I figured it was something special like streaming. Thanks!

Post Reply