ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post general discussions on using our drivers to write your own software here
Post Reply
huangaihui74
Newbie
Posts: 0
Joined: Fri Sep 16, 2022 3:30 pm

ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post by huangaihui74 »

We are using PicoScope 6425E and PicoSDK_32_10.7.22.241 to create our custom code and there are 2 issues:
1. We are using the rapid mode with 32 memory segment and 1000 samples. Function ps6000GetValuesBulk throws an access violation and crashes our program. It works if we decrease the number of the memory segment to less than 24, but this function still takes long time to return if the number is big.
2. Instead of get values of 32 segments back all at once, we call ps6000GetValuesBulk segment to segment, but it randomly shows up that the last few segments returns buffer of all 0s. In other words, the first few segments data are valid, and then the rest comes back all 0s.

HChen

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

Re: ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post by Martyn »

A colleague sent a reply to your email on March 9th
What programming language are you coding it in?
Are you able to send in your code file so we can look at it and try to replicate?
can you check if our emails are going to your spam folder.
Martyn
Technical Support Manager

huangaihui74
Newbie
Posts: 0
Joined: Fri Sep 16, 2022 3:30 pm

Re: ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post by huangaihui74 »

Hi,

No email is received. Spam folder is checked and no email from Pico support team.
The application is built in VB.NET with Visual Studio 2017.

Thank you,

HChen

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

Re: ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post by Martyn »

As there appears to be an issue with emails can you post your code here
Martyn
Technical Support Manager

huangaihui74
Newbie
Posts: 0
Joined: Fri Sep 16, 2022 3:30 pm

Re: ps6000GetValuesBulk throw access violation or return buffer with all 0s

Post by huangaihui74 »

Hi Enclosed is the test code file I implemented in vb.net. Function PICOSCOPE_CaptureDataWithNoOfWaveforms
is the one we are using.

Thank you,

Huizhong Chen

Post Reply