![PICO picoscope 3204 Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/pico/picoscope-3204/picoscope-3204_user-manual_1555065031.webp)
Technical reference
30
Copyright 2005 Pico Technology Limited. All rights reserved.
PS3000044 1.4
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
(Borland 32-bit applications); or
ps3000.lib
(Microsoft Visual C 32-bit applications)
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
(Borland 32-bit applications); or
ps3000.lib
(Microsoft Visual C 32-bit applications).
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.