Test and Measurement Forum

RunStreaming invalid sample interval

Post general discussions on using our drivers to write your own software here

RunStreaming invalid sample interval

Postby 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
cpc333
Newbie
 
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm

Re: RunStreaming invalid sample interval

Postby 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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: RunStreaming invalid sample interval

Postby 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!
cpc333
Newbie
 
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm

Re: RunStreaming invalid sample interval

Postby 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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: RunStreaming invalid sample interval

Postby 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!
cpc333
Newbie
 
Posts: 0
Joined: Sat Aug 18, 2012 5:31 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests