Can't run one of the C Examples when I have the right PicoScope Model?

Post any questions you may have about our current range of oscilloscopes
Post Reply
JamieForster
Newbie
Posts: 0
Joined: Tue Sep 22, 2020 9:50 pm

Can't run one of the C Examples when I have the right PicoScope Model?

Post by JamieForster »

Hi, I'm, trying to run the ps5000aCExamples.sln C example on a PicoScope 5242D on Visual Studio 2019 Community Edition, it starts up and begins running but always terminates like so;

Code: Select all

PicoScope 5000 Series (ps5000a) Driver MSO Block Capture Example Program

Device information:-

Driver Version: 2.1.47.2276
USB Version: 3.0
Hardware Version: 1
This example is for PicoScope 5000 Series Mixed Signal Oscilloscopes.
Exiting application...

C:\Users\Jamie\Documents\Developer\picosdk-c-examples-master\ps5000a\x64\Debug\ps5000aBlockMSOCon.exe (process 27464) exited with code -1.
The output from Visual Studio is as follows:

Code: Select all

The program '[27464] ps5000aBlockMSOCon.exe' has exited with code -1 (0xffffffff).
Am I doing something wrong? The model I am using is the 5242D which should be compatible with the example I am trying to run. I have installed both the 32bit and 64bit SDKs but am running/altering specifically for 64bit. I was under the impression that I would have a console application to input some parameters and get given back a file with readings.

I have attached the debug console window.

Thanks!
Attachments
Screenshot_14.png

Gerry
PICO STAFF
PICO STAFF
Posts: 1145
Joined: Mon Aug 11, 2014 11:14 am

Re: Can't run one of the C Examples when I have the right PicoScope Model?

Post by Gerry »

HI Jamie,

There are 2 Project solutions for the 5000 series, and to successfully build your application, you need to select the correct one. As you are not using an MSO PicoScope, you need to use the ‘ps5000aCon’ solution instead of the ‘ps5000aBlockMSOCon’ solution (which is the default). The solutions are in the solution explorer at Top Right (if you haven't changed the layout from the default) so just select the non MSO solution, open the ps5000aCon.c source file copy across any edits, if you made any, then close the ps5000aBlockMSOCon.c source file, and the Build should progress beyond where it is stopping now.

Regards,

Gerry
Gerry
Technical Specialist

Post Reply