Test and Measurement Forum

Missing samples: Series 2000 pico sample code

Post your VB and VBA discussions here

Missing samples: Series 2000 pico sample code

Postby bartj » Tue Apr 06, 2010 5:18 pm

I have the Pico VB code example for a 2000 series up and running. I see that in the Sub "Fast_Click", only values 0-99 are used to populate the list. Values 100 and above are 0. I would expect at least 1024 values to be valid. I am using all the default values. I note the following items from the function GetTimeBase:

Handle: 1
timebase: 13
no_of_values: 1024
time_interval: 204800
time_units: 2
oversample: 0
max_samples: 8064

Why am I only getting 0-99 samples back instead of 1024 or more? And how can I "fix" this to obtain more samples?

Thanks,
Bartj
bartj
User
User
 
Posts: 2
Joined: Wed Sep 20, 2006 11:59 pm

Re: Missing samples: Series 2000 pico sample code

Postby Robin » Wed Apr 07, 2010 12:17 pm

Hi Bartj

Why am I only getting 0-99 samples back instead of 1024 or more? And how can I "fix" this to obtain more samples?


In the call to ps2000_get_values, no_of_values is set to 100. You can change this as required.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests