User`s guide
Sample Programs ? 59
7.1 Sample Programs Development Environment
7.1.1 Visual Basic Sample Programs
There are several Visual Basic sample programs provided for each card in this software package. The following files are
included in each sample program (Using VB9112DMA as an example):
??VB project file --- VB9112D.VBP
??VB form files --- VB9112D.FRM
??Executable file --- VB9112D.EXE
You must have 32-bit Microsoft Visual Basic 4.0 Professional Edition or above to deal with these sample programs.
Please refer to Visual Basic Manual or related reference books to get the information about how to use Visual Basic 4.0.
If you don’t install 32-bit Microsoft Visual Basic 4.0, but want to execute the VB sample programs, please install “VB4
Runtime” package first. The VB4 Runtime package includes the required library and DLL files to run the VB sample
programs. You can find this package in the root directory of “ADLink All-In-One Compact Disc” CD or from the setup
main window of this CD. After the installation of VB4 Runtime package, the VB4 samples can be executed on the
system with no VB4 installed.
PCIS-DASK includes another kind of samples, Microsoft C/C++ sample programs, which will be described in the next
section. The C/C++ samples provide the similar functions as those provided by VB samples. Preferably, they can be run
directly and don’t need to install any additional package. So, if you just want to test the PCIS-DASK package, please
use Microsoft C/C++ sample programs.
7.1.2 Microsoft C/C++ Sample Programs
We provide several Microsoft C/C++ sample programs for each card in this package. The following files are included in
each sample program (Using SDK7200WAV as an example):
??C source file --- 7200WAV.C
??Workspace file --- 7200WAV.MDP
??Resource script file --- 7200WAV.RC, RESOURCE.H
??Make file --- 7200WAV.MAK
??Executable file --- 7200WAV.EXE
You can use any editor or Microsoft Visual C++ 4.0 to view or modify these source files. However, to build the
executable 7200WAV.EXE, you must have Microsoft Visual C++ 4.0 or above. Please refer to Visual C++ Manual or
related reference books to get the information about how to use Visual C++.
7.2 Execute Sample Programs
To run the sample programs, please follow these steps:
step 1. Open the sample program
You can use Microsoft Visual C++ 4.0 or Visual Basic 4.0 to open and execute the sample programs. Or you can run
the executable files directly.
step 2. Option Setting
According to your requirements, select the testing functions, e.g. A/D, D/A, etc., testing channels, sampling rate and
transfer count, etc.
step 3. Push “start” button to run the program.
7.3 The Detailed Descriptions of these Sample Programs
There are four kinds of sample programs provided in this software package. The descriptions of these three types are
the following (Using the screens of VB 9112, SDK 9112DMA, SDK 9112CDMA and SDK 9118 DbfPreTrg as the figure
examples) :
7.3.1 A/D conversion, D/A conversion, D/I, and D/O
This kind of samples is used to demonstrate how to use PCIS-DASK to operate software trigger with program polling
data mode and Read/Write data from digital input/output channels on PCI-9112. The main screen of this kind of
programs is shown below (Figure 7.2):