Programming - PICO picoscope 3204 User Manual

Picoscope 3000 series pc oscilloscopes
Table of Contents

Advertisement

3.6

Programming

3.6.1
C
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.
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:
ps3000.c;
ps3000.rc; and
ps3000bc.lib
ps3000.lib
The following files must be in the compilation directory:
ps3000.rch;
ps3000.h;
and the following file must be in the same directory as the executable.
ps3000.dll
The console 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:
ps3000con.c; and
ps3000bc.lib
ps3000.lib
The following files must be in the compilation directory:
ps3000.h;
and the following file must be in the same directory as the executable.
ps3000.dll
3.6.2
Visual Basic
The Win32 sub-directory contains the following files:
ps3000.vbp - project file
ps3000.bas - procedure prototypes
ps3000.frm - form and program
Note: The functions which return a TRUE/FALSE value, return 0 for FALSE and 1 for
TRUE, whereas Visual basic expects 65 535 for TRUE. Check for > 0 rather than =TRUE.
Copyright 2005 Pico Technology Limited. All rights reserved.
(Borland 32-bit applications); or
(Microsoft Visual C 32-bit applications)
(Borland 32-bit applications); or
(Microsoft Visual C 32-bit applications).
Technical reference
30
PS3000044 1.4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents