Getrangelist, Initialization functions, Loaddriver – Dataman 770 Series User Manual
Page 14
Development kit for DATAMAN 770 series
Programmer’s Guide
Remark:
Each array item is of TTimeBaseItem type. This structure comprises of the following
items:
nsPerDiv – amount of nanoseconds per screen division (50 samples); this value is
passed to the SetTimeBase function
RealSamplingRate – real sampling rate (in case, that the timebase doesn’t run in
sampling mode, this value equals to SamplingRate)
SamplingRate – equivalent sampling rate; this frequency determines distance between
two samples
SamplingMulti – indicates ratio of SamplingRate and RealSamplingRate; the value of
1 indicates sampling in real time, value greater than 1 indicates sampling mode
3.1.7. GetRangeList
Returns the list of available ranges.
procedure
GetRangeList(RangeList:PRangeList;RangeListLength:PInteger);stdcall;external
'm770drvdk.dll';
Parameters:
rangelist – the first item of the array which will be filled with the available ranges.
Array must be at least 13 items long.
rangelistlength – the number of array items which was filled (number of available
ranges)
Return value: -
Remark:
Each array item is of TRangeItem type. This structure comprise of following items:
mVPerDiv – amount of mV per one screen division (32 quantization levels); this value
is passed to the SetRange function
3.2. Initialization functions
3.2.1. LoadDriver
Loads m770drv.dll driver.
function LoadDriver:integer;stdcall;external 'm770drvdk.dll';
Parameters: -
Return value:
ERROR_OK – driver loaded successfully
ERROR_DRIVER_NOT_LOADED – unable to load m770drv.dll library
ERROR_DRIVER_INCOMPATIBLE – m770drv.dll isn’t compatible with DK
Remark:
- 14 -