
PC-414
DATEL, Inc., Mansfield, MA 02048 (USA)
Tel: (508)339-3000, (800)233-2765 Fax: (508)339-6356
Email: sales@datel.com
Internet: www.datel.com
87
Figure 5. PC-414VB-CONSOLE
PC-414VB CONSOLE
This example application was written in Visual Basic 5.0, using the PC-414LVS as the callable DLL. Created by
Eiichi Itagaki, Software Engineer of DATEL KK Technical and Jeffrey Greenberg, Marketing Applications Engineer
DATEL, Inc. USA.
For users preferring to create applications in Visual Basic, the DLL and source code found in the PC-414LVS offers the Visual
Basic programmer a wealth of information and tools in creating applications quickly and easily. The PC-414VB-CONSOLE is a
sample program showing how to implement most of the functions of the PC-414 Series. Included is the source code for all the
forms and the code modules.
To receive your
FREE
copy of
PC-414VB-CONSOLE
, purchase PC-414LVS with any PC-414 Series board and contact DATEL at
1-800-233-2765.
Example Declarations:
Declare Sub SetIOBase Lib “P414LV32.DLL” (ByVal io_base_address As Integer)
Declare Sub init_414 Lib “P414LV32.DLL” (ByVal fsize As Integer, ByVal port As Integer, ByVal trigger_src As Integer,
ByVal trigger_pol As Integer, ByVal clock_src As Integer, ByVal md As Integer)
Declare Sub set_mode Lib “P414LV32.DLL” (ByVal samples_trigger As Integer, ByVal scan_enable As Integer, ByVal scan_count
As Integer, ByVal auto_incr As Integer, ByVal cahnnel As Integer, ByVal sample_rate As Long,
ByVal trigger_rate As Long)
Declare Sub StartAD Lib “P414LV32.DLL” ()
Declare Sub StopAD Lib “P414LV32.DLL”()
Declare Function read_status_reg Lib “P414LV32.DLL” () As Integer
Declare Sub get_status_flags Lib “P414LV32.DLL” (half_full_f As Long, full_f As Long, empty_f As Long, acquire_f As Long)
Declare Sub reset_fifo_reg Lib “P414LV32.DLL” ()
Declare Sub read_FIFO Lib “P414LV32.DLL” (ByVal count As Integer, buffer As Integer)