Test and Measurement Forum

Part of data vector is empty

Post your C and C++ discussions here

Part of data vector is empty

Postby SinisterMJ » Tue Oct 07, 2014 5:03 pm

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.
SinisterMJ
Newbie
 
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Postby Hitesh » Wed Oct 08, 2014 4:14 pm

Hi SinisterMJ,

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

Which IDE are you using for your development?

Thanks,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Part of data vector is empty

Postby SinisterMJ » Wed Oct 08, 2014 7:45 pm

I am using VS2012 Professional, and the .dll I am using is 1.1.0.139
SinisterMJ
Newbie
 
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Postby Hitesh » Mon Oct 13, 2014 1:00 pm

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Part of data vector is empty

Postby SinisterMJ » Tue Oct 14, 2014 9:21 pm

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

Postby SinisterMJ » Wed Oct 15, 2014 9:30 am

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
SinisterMJ
Newbie
 
Posts: 0
Joined: Tue May 20, 2014 6:06 am

Re: Part of data vector is empty

Postby Hitesh » Thu Oct 16, 2014 1:06 pm

Thanks for the information.

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

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests