Technical reference

25

3.6Programming

3.6.1C

There are two C example programs: one is a simple GUI application, and the other is a more comprehensive console mode program that demonstrates all of the facilities of the driver.

GUI example

The GUI example program is a generic Windows application - that is, it does not use Borland AppExpert or Microsoft AppWizard. To compile the program, create a new project for an Application containing the following files:

ps2000.c

ps2000.rc

and

ps2000bc.lib (Borland 32-bit applications); or

ps2000.lib (Microsoft Visual C 32-bit applications)

The following files must be in the compilation directory:

ps2000.rch

ps2000.h

and the following file must be in the same directory as the executable.

ps2000.dll

Console example

The console example program is also a generic Windows application - that is, it does not use Borland AppExpert or Microsoft AppWizard. To compile the program, create a new project for an Application containing the following files:

ps2000con.c

and

ps2000bc.lib (Borland 32-bit applications); or

ps2000.lib (Microsoft Visual C 32-bit applications).

The following files must be in the compilation directory:

ps2000.h

and the following file must be in the same directory as the executable.

ps2000.dll

Copyright 2006 Pico Technology Limited. All rights reserved.

PS2100044-1.0

Page 27
Image 27
Pico Communications PicoScope 2105, PicoScope 2104 manual Programming, 1 C, GUI example, Console example