Test and Measurement Forum

ps3000_get_values

Post your VB and VBA discussions here

ps3000_get_values

Postby PierLuc » Wed Oct 12, 2011 12:08 am

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
PierLuc
Newbie
 
Posts: 0
Joined: Mon Oct 10, 2011 1:10 am

Re: ps3000_get_values

Postby Martyn » Wed Oct 12, 2011 7:59 am

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

Re: ps3000_get_values

Postby PierLuc » Thu Oct 13, 2011 12:52 am

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

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


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests