Part of data vector is empty

Post your C and C++ discussions here
Post Reply
SinisterMJ
Newbie
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Part of data vector is empty

Post by SinisterMJ »

I am running the PS5444B with 250 MHz, 12 bit, 2 channel, and acquire the maximum amount of values in one run.
The samplecount is at 134217600 per channel.

When I run my code in debug mode, everything is perfectly fine. I get everything set properly, and okay. But in Release mode only the first few million elements are valid (in one test about 9 million, in another around 8.5 million, its random how many are valid), and after that everything else is just zero.

Where does this issue come from, and what do I need to do about this? Note that in debug everything works perfectly as expected, in Release not so much.

Hitesh

Re: Part of data vector is empty

Post by Hitesh »

Hi SinisterMJ,

Which version of the ps5000a.dll driver are you using?

Which IDE are you using for your development?

Thanks,

SinisterMJ
Newbie
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Post by SinisterMJ »

I am using VS2012 Professional, and the .dll I am using is 1.1.0.139

Hitesh

Re: Part of data vector is empty

Post by Hitesh »

Thanks for your reply.

I've been testing a modified version of the C console application using the driver and another which I have access to but am unable to reproduce the issue.

Could you please send your code to support@picotech.com and I can look through it and run some tests if necessary.

Many thanks,

SinisterMJ
Newbie
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Post by SinisterMJ »

I sent in some sample code with which I reproduced the issue here.

SinisterMJ
Newbie
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Post by SinisterMJ »

Okay, a few more information on my system:

Windows 7 x64
PicoScope 50000 Series PC Oscilloscope driver 2.0.3.8 used

The software was compiled with 32 bit and 64 bit, in both cases I get the precisely same behaviour (works in debug, does not so much in release)

The SDK used is r10.5.0.32

Hitesh

Re: Part of data vector is empty

Post by Hitesh »

Thanks for the information.

I believe we have found the issue to be an uninitialised variable for sampleCount passed to the ps5000aGetValues function.

Regards,

Post Reply