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 »

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

Re: ps2000con.c

Post by Hitesh »

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,

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

Re: ps2000con.c

Post by billma »

Hi Hitesh,

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

Post Reply