13
Warrant Officer Ondřej Litvaj CIS Department University of Defense Czech Republic Warrant Officer Ondřej Litvaj Software for USB oscilloscope Software for USB oscilloscope University of Defense 1/12

Warrant Officer Ondřej Litvaj CIS Department University of Defense Czech Republic Software for USB oscilloscope Warrant Officer Ondřej Litvaj Software

Embed Size (px)

Citation preview

Warrant Officer Ondřej Litvaj

CIS Department

University of Defense Czech Republic

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense 1/12

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense 2

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Intentions

Used components

Program solutions

Future

3

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Use of Tie-Pie hardware with some new software

Simple and clear control (for students of first year of study)

4

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

2-channel input and 1-channel output

High speed USB interface

5

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

USB driver and DLL library

Examples of procedures

Instrument manual

WinSoft measurement software for

verification6

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Library and h hardware initialization

Activation of the generator

Receiving data in mode „StreamStream“ and

„BlockBlock“

Arrangement of display in time area7

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

…sExeDir := ExtractFilePath( Application.ExeName );StrPCopy( DLLSource, sExeDir + 'HS3.dll' ); //creating the path of dll library

if DLLSource <> '' then //checking the source’s existence begin DLLHandle := Loadlibrary( DLLSource ); //loading dll libraryend

if DLLHandle >= 32 thenbegin RetrieveAllProcAddresses; //gets the procedure addresses lTemp := InitInstrument( $308 ); //initialization of hardwareend;…

8

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Sample frequency

Record length

Post samples

9

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

begin bFirst[1] := False; //overwriting - flag wCurrentY := Display.Height div 2; //half of display height Display.Canvas.MoveTo( 0, wCurrentY ); //initial position Display.Canvas.Pen.Color := clAqua; //color for wIndex := 0 to Display.Width - 1 do begin //shifting of points wCurrentY := Round( ( ( ( Ch1WordArray[wIndex] - 32768 ) / -

32768 ) * ( Display.Height / 2 ) ) + Display.Height / 2 );

Display.Canvas.LineTo( Round(wIndex * deff), wCurrentY ); SaveArray[1, wIndex] := wCurrentY; //storage for

overwriting end; end;

Round( ( Ch1WordArray[wIndex] - 32768 ) / -32768

*

Display.Height / 2 + Display.Height / 2 )

10

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Displayed data

Make the environment more dynamic

Zoom

Scroll the axis

Spectrum, circuit, impedance, phase

analyzer

11

Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense Warrant Officer Ondřej Litvaj Software for USB oscilloscopeSoftware for USB oscilloscope University of Defense

Basic facts

Bonding software and hardware through DLL

library

Data processing

What should be done in the next step12

THANK YOU THANK YOU

FOR YOURFOR YOUR ATTENTIONATTENTION