Search found 17 matches

by Sonander
Sun Sep 05, 2010 10:50 am
Forum: C and C++
Topic: Hang on data read with some timebases on Picoscope 2204
Replies: 9
Views: 12711

Re: Hang on data read with some timebases on Picoscope 2204

Thanks for that, you hit it exactly. I had an 8x oversample set so only a 1k store length would work on this scope. So with the new dll appear to be free of lockup problems now. Incidentally, are there other Picoscopes that don't force a tradeoff between oversampling and store length? I assume this ...
by Sonander
Thu Sep 02, 2010 7:25 pm
Forum: C and C++
Topic: Hang on data read with some timebases on Picoscope 2204
Replies: 9
Views: 12711

Re: Hang on data read with some timebases on Picoscope 2204

Its defiantly different. I can now run a 1000 byte store at any timebase, which is better. However if I increase the store size to just 2000 bytes, I cannot operate any timebase, which is worse. It hangs earlier than before too, the end of the transcript looks like this: Operation: Collect block imm...
by Sonander
Tue Aug 31, 2010 6:55 pm
Forum: C and C++
Topic: Hang on data read with some timebases on Picoscope 2204
Replies: 9
Views: 12711

Re: Hang on data read with some timebases on Picoscope 2204

Thanks for the reply Robyn. Am guessing from your comment about triggering that you didn't make this change: Set trigger on CH A with auto trigger after 200ms (line 334, 335) auto_trigger_ms = 200; ps2000_set_trigger ( unitOpened.handle, PS2000_CHANNEL_A, 0, PS2000_RISING, 0, auto_trigger_ms ); With...
by Sonander
Thu Aug 26, 2010 9:30 am
Forum: C and C++
Topic: Hang on data read with some timebases on Picoscope 2204
Replies: 9
Views: 12711

Re: Hang on data read with some timebases on Picoscope 2204

I noticed if I drop the store length to 4032 bytes, I can step down one slower timebase. 15 and below now work, but 16 and above lock up! Now I know this there is one less change to make to the sample code to reproduce the lockup. You can leave the store length at the default of 1024 and see the pro...
by Sonander
Thu Aug 26, 2010 9:21 am
Forum: C and C++
Topic: Useful looking compiler warning from PS2000con.c
Replies: 1
Views: 3783

Useful looking compiler warning from PS2000con.c

In Microsoft Visual Studio 2010 when I compile PS2000con.c it came up with a surprisingly relevant looking warning. Against this line short input_ranges [PS2000_MAX_RANGES] = {10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000}; It reports Warning 1 warning C4309: 'initializing' : trun...
by Sonander
Wed Aug 25, 2010 8:17 pm
Forum: C and C++
Topic: Hang on data read with some timebases on Picoscope 2204
Replies: 9
Views: 12711

Hang on data read with some timebases on Picoscope 2204

I have been having trouble with a hang on transferring data out of the scope for some combinations of timebase, store length and triggering mode. This is using PS2000sdk_r6_4_28. The problem can be duplicated with ps2000con.c and a couple of changes, the modified file is attached. There are a few ex...
by Sonander
Mon Dec 14, 2009 7:39 pm
Forum: General Software Discussions
Topic: Sample rate confusion
Replies: 4
Views: 6055

Re: Sample rate confusion

Thats a lot simpler, many thanks for the support.
by Sonander
Fri Dec 11, 2009 9:45 pm
Forum: General Software Discussions
Topic: Sample rate confusion
Replies: 4
Views: 6055

Re: Sample rate confusion

That answers one part of it, specifically why the display of the selected timebase is always the same. There are a couple of mysteries left. Like why is option 1 showing 20ps as a valid timebase? That seems about 3 orders of magnitude too fast for a 2XXX series scope. Then look at the leap between o...
by Sonander
Fri Dec 11, 2009 2:42 pm
Forum: General Software Discussions
Topic: Sample rate confusion
Replies: 4
Views: 6055

Sample rate confusion

I am trying to understand how to translate the time_interval parameter returned by the get_timebase to, well, a time interval. A time interval to me means a time interval between successive samples. Making the get_timebase call returns time_interval=20 and time_units=1 as the fastest timebase. I don...
by Sonander
Thu Mar 12, 2009 8:06 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

Thanks Robin, that helped. In the light of this, here are some suggested changes for the PS2000con.c example file shipped with the library. Line 111, change to #define BUFFER_SIZE 16384 Around line 400 we want oversample = 1; no_of_samples = 1; Then before the call to ps2000_run_block a few lines fu...
by Sonander
Wed Mar 11, 2009 8:32 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

Is it too much to expect that someone at Picotech try this simple test and post the result?
This issue has been around since January. I notice its been viewed 879 times, so to carry on ignoring it cannot be good for the image of Picotech.
by Sonander
Fri Feb 20, 2009 9:03 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

I just got a driver update email, so revisited this problem. I downloaded both the latest published driver and the one mentioned above, and notice they are the same. So here is what happens for me after I deleted all the old drivers from /usr/local/lib64/libps* and /usr/local/include/libps* and inst...
by Sonander
Thu Jan 15, 2009 3:43 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

That's a fair point, and hopefully its just the probe wasn't making contact. However this doesn't explain the lockup or the large jumps in ADC values with oversampling enabled that I saw on a separate occasion. All the test needs though is a DC voltage that's in range. I would like to see some evide...
by Sonander
Thu Jan 15, 2009 2:55 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

Sorry, what I forgot to mention I was using a times 10 probe to connect channel a to the signal generator output. So the scope sees 0.1V p-p square.

The high sampling rate means you normally see a constant voltage, a tiny part of the top or bottom of the square wave.
by Sonander
Wed Jan 14, 2009 9:04 pm
Forum: Linux
Topic: Does oversampling work on 220X scopes with 64 bit Linux?
Replies: 15
Views: 27048

Hi Robyn, Perhaps you can do this test for me, it should only take you a few minutes. I tried it and it locked up, but if you can make it sample the results will be interesting. Compile the PS2000con.c on 64 bit Linux gcc -lps2000 PS2000con.c -oPS2000con Then run it as follows ./PS2000con Set 50mV i...