ps2000con.c

Post your C and C++ discussions here
Post Reply
billma
Newbie
Posts: 0
Joined: Wed Apr 02, 2014 5:49 pm

ps2000con.c

Post by billma » Thu Apr 10, 2014 3:36 am

Hi all,

i have a picoscope 2204 for my research i would like to set the scope to streaming mode and triggering using the PS2000sdk_r10_5_0_28 C console. I tried to compile it with Visual Studio with...

* To build this application
* set up a project for a 32-bit console mode application
* add this file to the project
* add PS2000.lib to the project (Microsoft C only)
* build the project

but i got a error massage:
Error 1 error C4996: 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch.

Thanks in advance!

Hitesh
Site Admin
Site Admin
Posts: 2827
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: ps2000con.c

Post by Hitesh » Thu Apr 10, 2014 10:48 am

Hi billma,

If you change any reference to getch() to _getch() does the project compile?

With regards to your streaming application, are you looking to capture the data as it is collected or retrieve raw data samples from the driver once streaming has stopped?

Regards,
Hitesh

Technical Support Engineer

billma
Newbie
Posts: 0
Joined: Wed Apr 02, 2014 5:49 pm

Re: ps2000con.c

Post by billma » Thu Apr 17, 2014 6:01 pm

Hi Hitesh,

thanks for your reply yes i got it working on Windows as well as on Linux. Works fine :lol:
Regards,

Post Reply