PicoScope Mac Xcode compatibility

Discussion forum for the new Picoscope Mac software
Post Reply
ladi
Newbie
Posts: 0
Joined: Wed May 11, 2016 2:41 pm

PicoScope Mac Xcode compatibility

Post by ladi » Wed May 11, 2016 2:51 pm

I am trying to program my PicoScope 2000 Series (2204A) and have included the ps2000aApi. I am trying to follow the steps and the first is to call the ps2000_open_unit() function, but this isn't even being recognised by Xcode. I have checked the headers and indeed the function isn't included in any of the relevant header files, even though the tutorial says it should be defined in the API. Could anyone help me out please? Thanks

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

Re: PicoScope Mac Xcode compatibility

Post by Gerry » Thu May 12, 2016 9:40 am

Hi Ladi,

Unfortuntaely, the API/drivers for the 2200 series and 2200A series PicoScopes had to be assigned in a more unconventional manner. So, the ps2000Api is for the members of both the older 2200 series PicoScopes and newer 2200A series PicoScopes that are 2 channel, non-MSO, and have the smaller buffer sizes, i.e. the PicoScope 2204, 2204A, 2205 & 2205A. All of the other 2200 series Picoscopes use the ps2000aApi.

So, you need to use the ps2000Api.

Regards,

Gerry
Gerry
Technical Specialist

ladi
Newbie
Posts: 0
Joined: Wed May 11, 2016 2:41 pm

Re: PicoScope Mac Xcode compatibility

Post by ladi » Thu May 12, 2016 9:58 am

Hi Gary,

Thanks for your response. Having changed back to the ps2000 headers, I'm still having the exact same problem however. The "ps_open_unit()" function isn't defined anywhere in the ps2000.h header file, so isn't recognised by Xcode. After then including "libps2000.2.dylib", I don't see the error, but have greater than 200 errors e.g. "Source file is not valid UTF-8", "Null character ignored", etc..
These are probably syntax issues, but since I'm using a mac, I can't even view the dynamic library.

I look forward to your reply.

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

Re: PicoScope Mac Xcode compatibility

Post by Gerry » Fri May 13, 2016 4:09 pm

Hi Ladi,

In case you're unaware, as you sent in a request for help to our help desk, I've responded to you on that.

Regards,

Gerry
Gerry
Technical Specialist

Post Reply