Manual Hantek DSO-2090 USB
Manual Hantek DSO-2090 USB
Define struct
struct PictureRange{ // Be used for draw grid
WORD width; // the width of display range
WORD height; // the height of display range
WORD left; //the left of display range
WORD right; //the right of display range
WORD top; //the top of display range
WORD bottom; //the bottom of display range
};
struct ControlStruct{ //save the control data
WORD TriggerSource; //the trigger source
WORD SelectedChannel; // the display channel
WORD Timebase; // timebase
WORD TriggerPosition; // the trigger vertical position “0%,25%,50%,75%,100%”
WORD DataLengh; // its value is 1 or 2, if BufferSize = 10, Datalengh = 1, else Datalengh =2
WORD BufferSize ; //Its value is 10,32 or 64
WORD isAlt; //If ALT trigger, its value is 1, else 0.
};
struct LeversStruct{ //save position
WORD Ch1Position; // the ch1 waveform horizontal position
WORD Ch2 Position; // the ch2 waveform horizontal position
WORD Ch1TriggerPosition; // the ch1 trigger position
WORD Ch2TriggerPosition; // the ch2 trigger position
WORD EXTTriggerPosition; // the EXT trigger position
};
struct StateStruct{
WORD Ch1Filt; // ch1 filter
WORD Ch2Filt; //ch2 filter
WORD TriggerFilt; // trigger filter
WORD TriggerMode; //trigger mode (AUTO, NORMAL, SINGLE)
WORD TriggerSlope; //trigger slope (rising edge, failing edge)
};
struct LineColor{ // the waveform color
WORD R;
WORD G;
WORD B;
};
struct AutosetStruct{ //save the autoset data
WORD WhichChannel; //which channel will autoset
WORD Ch1Voltage; //Ch1 autoset voltage
WORD Ch2Voltage; //Ch2 autoset voltage
WORD Ch1Timebase; //Ch1 autoset timebase
WORD Ch2Timebase; //Ch2 autoset timebase
WORD Ch1InGND; //Ch1 is in GND or not
WORD Ch2InGND; //Ch2 is in GND or not
WORD Ch1Enabled; //Ch1 enabled
WORD Ch2Enabled; //Ch2 enabled
};
struct TimeStruct{ //Save the time
double Timer; // the number of seconds elapsed since midnight
double Time; //the time of Timebase
double ScrollTime;
double ScrollStart;
};
Functions:
Note: This function is use for Display Sampling on main panel status bar.
3. Flow Chat: