beautypg.com

Dataman 520 Series User Manual

Page 3

background image


Development kit for DATAMAN 520 series

Programmer’s Guide

Contents

1. Basic information.......................................................................................................5

1.1. Development kit contents ...................................................................................5
1.2. Development kit usage........................................................................................5

1.2.1. Borland C++ and Borland C++ Builder.......................................................5
1.2.2. Inprise Delphi...............................................................................................5
1.2.3. Microsoft Visual Basic ................................................................................5

2. Controlling the device................................................................................................6

2.1. Driver loading .....................................................................................................6
2.2. Device initialization ............................................................................................6
2.3. Data acquisition loop ..........................................................................................6
2.4. Application termination ......................................................................................8

3. Reference ...................................................................................................................9

3.1. Initialization functions ......................................................................................10

DeInitHardware....................................................................................................10
InitHardware ........................................................................................................10
LoadDriver ...........................................................................................................10

3.2. Trigger functions...............................................................................................11

SetTrigger ............................................................................................................11
SetTriggerCount...................................................................................................11
SetTriggerLength .................................................................................................12
SetTriggerMode ...................................................................................................12
SetAfterTriggerSamplesCount.............................................................................13
SetBeforeTriggerDelay ........................................................................................14
SetPrimaryTriggerSource ....................................................................................14
SetSecondaryTriggerSource ................................................................................14
InvertPrimaryTriggerSource ................................................................................15
InvertSecondaryTriggerSource ............................................................................15

3.3. Time base functions ..........................................................................................16

SetTimeBase ........................................................................................................16

3.4. Vertical control functions .................................................................................17

SetProbe ...............................................................................................................17
SetRange ..............................................................................................................17
SetDC ...................................................................................................................18
SetVert .................................................................................................................18

3.5. Data acquisition function ..................................................................................19

Data ......................................................................................................................19
EnableWaveformConformityDetection ...............................................................20
SetDigitalShielding ..............................................................................................21
SetShapePrediction ..............................................................................................21

DeviceContext ..........................................................................................................22
3.6. Other functions..................................................................................................24

CheckConnection.................................................................................................24
CompensationGenerator ......................................................................................24
GetSDKVersion ...................................................................................................24
GetDeviceDriverVersion .....................................................................................25
GetUSBDriverVersion.........................................................................................25

3.7. Visual Basic functions ......................................................................................26

- 3 -