The DSO8060DLL.DLL is a dynamic-link library for Windows OS. It
provides several function calls to control the DSO8060. You
may use some language that support DLL link function, such as
Visual C++, Visual Basic or Labview to control DSO8060 with
DSO8060DLL.DLL library. Here, we illustrate some examples using
Visual C++, Visual Basic and Labview. The other languages please refer to
their description about DLL link application.
What’s the DSO8060DLL.DLL?
11
Programmer’s Guide
22 Defination
Defination
2.1 Data Types
2.1.1 BOOLEAN
Boolean variable (1: TRUE, 0:FALSE).
2.1.2 INT8U
8-bit unsigned integer
2.1.3 INT8S
8-bit signed integer
2.1.4 INT16U
16-bit unsigned integer
2.1.5 INT16S
16-bit signed integer
2.1.6 INT32U
32-bit unsigned integer
2.1.7 INT32S
32-bit signed integer
2.1.8 FP32
Single float point variable, 4 bits
2.1.9 FP64
Double float point variable, 8 bits
2.1.10 HTSTATUS
32-bit unsigned integer
22
Programmer’s Guide
Function return status. 0: Success, 1:Error:
2.1.11 HT_DEVICE_ID
32-bit unsigned integer
0~15: the index of machine. The machine which connected to PC first will be
set as 0, the second is 1, and so on.
16~31: the communiate mode. 0: USB, 1:COM, 2:LAN.
2.2 Struct
2.2.1 HT_DEVICE_INFO
The device Information
typedef struct _HT_DEVICE_INFO
{
char szName[20];
char szSerial[20];
INT16U iFirmVersion;
INT16U iHardVersion[4];
INT32U iDate;
} HT_DEVICE_INFO,*PHT_DEVICE_INFO;
szName[20]
The name of the machine, always it is “DSO8060”
szSerial[20]
The serial number of machine, which match the number behined the machine.
iFirmVersion
The firmware's version
iHardVersion[4]
the hardware verison,
HardVersion[0]-PCB version
HardVersion[1]-mcu 1# version
HardVersion[2]-mcu 2# version
HardVersion[3]-Lan version.
iDate
Factory data, 0~7 bits: day, 8~15 bits: month, 16~31 bits: year.
For example: 0x07D90102 must be 2009 year 1 month 2 day.
2.2.2 TRIGGER
The trigger system
typedef struct _TRIGGER
{
INT16U Mode;
Be avilible when the DSO work in ROLL or scan mode. You should draw the
points in the empty area. The area is defined by the next parameter -emptyPos.
0: Don't have empty area,
1: From emptyPos[0] to emptyPos[1] points are empty area
The 1000 times of the distance between the each point display on the LCD
screen. If is 250, it means the point space is 2.5 pixel on the LCD screen.
The space is between 0 to 300.
66
Programmer’s Guide
xDisLeft
The 1000 times of the left position, If is 13000, it means the left position is 13
on the LCD screen.The position is between 0 to 300.
nDisData
The number of the points display on the screen, (0 ~ 1200)
bDrawType
Draw Type, 1: Normal, : Only draw Dot
2.2.6 HOLDOFF
The holdoff’s parameters
typedef struct _HOLDOFF
{
INT16U time;
INT16S bOn;
}HOLDOFF;
time
Channge the holdoff time.
bOn
Turn on/off the holdoff, 0: OFF, 1: ON
2.2.7 STOPSTATUS
The status when stop the machine.
typedef struct _STOPSTATUS
{
INT16S horiLevel;
CHANNEL ch[4];
INT16U timebase;
}STOPSTATUS;
horiLevel
The horizontal trigger position displayed on the screen, the left is 0, and the
right is 299
ch[4]
The four channel’s parameters, 0:CH1, 1:CH2, 2:MATH, 3:REF
Timebase
The timebase index
2.2.8 UPLOAD_DATA
All of the parameters of the hardware.
typedef struct _UPLOAD_DATA
{
CHANNEL ch[4];
STOPSTATUS stopStatus;
The four channels' parameters, 0:CH1, 1:CH2, 2:MATH, 3:REF, See the struct
“CHANNEL”
stopStatus
The status when pressing 'stop', See the sturct “STOPSTATUS”
Math
Math parameters see the struct “MATH”
trigger[3]
Trigger’s system, When the trigger is edge or pulse, 0 is available, When the
trigger is ALT, trigger[1] is Ch1’s trigger and trigger[2] is Ch2’s trigger.
display[4]
Draw parameters of the four channels.
timebase
The timebase of the device. It is avaible when the trigger is not ALT.
function
The current type, 0: Digital scope, 1: Digital Meter measure,2:Arbitrary
waveform generator
status
the status of the device, 0: Stop, 1: Run, 2: Auto, 3: Tri'd, 4: Wait
horiPos
The horizontal trigger position displayed on the screen, the left is 0, and the
right is 299. It ‘s available when the trigger is not ALT.