I am looking for Picoscope 2203 C sample Programms

Post your C and C++ discussions here
Post Reply
milliokur

I am looking for Picoscope 2203 C sample Programms

Post by milliokur » Fri Feb 18, 2011 8:45 am

Hi Everyone,

I bought a Picoscope 2203.I want the information out of it by using c code.In the development kid there is Gui version only useful for the versions PS2105 and PS2104.Could anybody please send a GUI program(c code included please) that demonstrates how to use the PS2000 driver, only available for the PS2203

Thanks for your help!

os Win xp

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: I am looking for Picoscope 2203 C sample Programms

Post by Chris » Fri Feb 18, 2011 2:41 pm

You can easily modify the code to work with the 2203, 2204, or 2205.

typedef enum {
MODEL_NONE = 0,
MODEL_PS2104 = 2104,
MODEL_PS2105 = 2105,
MODEL_PS2202 = 2202,
MODEL_PS2202 = 2203,
MODEL_PS2202 = 2204,
MODEL_PS2205 = 2205
} MODEL_TYPE;

Under case WM_INITDIALOG:, add...

case MODEL_PS2205:
unitOpened.model = MODEL_PS2205;
unitOpened.external = FALSE;
unitOpened.signalGenerator = TRUE;
unitOpened.firstRange = PS2000_50MV;
unitOpened.lastRange = PS2000_20V;
unitOpened.timebases = PS2000_MAX_TIMEBASE;
unitOpened.noOfChannels = DUAL_SCOPE;
unitOpened.channelSettings[PS2000_CHANNEL_A].range = PS2000_50MV;
unitOpened.channelSettings[PS2000_CHANNEL_B].range = PS2000_50MV;
break;


Repeat for 2204 & 2203.

milliokur

Re: I am looking for Picoscope 2203 C sample Programms

Post by milliokur » Mon Feb 21, 2011 7:41 am

Thanks i am really happy for your answer.



thx

:D

Post Reply