ps3000_get_values

Post your VB and VBA discussions here
Post Reply
PierLuc
Newbie
Posts: 0
Joined: Mon Oct 10, 2011 1:10 am

ps3000_get_values

Post by PierLuc »

Hi I try to read 512000 data from ps3000_get_values, but I cant go further than 32767 ex:

ok = ps3000_get_values(ps3000_handle, Values_a(0), Values_b(0), values_c(0), values_d(0), overflow, 32767)

At 32768, I have an overflow error. Is there a way to fix this ?

thanks

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

Re: ps3000_get_values

Post by Martyn »

ps3000_get_values returns a long containing the number of samples returned. The following works for me

Code: Select all

long samples_returned;

samples_returned = ps3000_get_values(ps3000_handle, Values_a(0), Values_b(0), values_c(0), values_d(0), overflow, 256000)
Martyn
Technical Support Manager

PierLuc
Newbie
Posts: 0
Joined: Mon Oct 10, 2011 1:10 am

Re: ps3000_get_values

Post by PierLuc »

Ohh I see, in the example, "ok" is an interger and that is why I get an overflow message.

thanks

Post Reply