Design and Implementation of a LabVIEW based Computer Control for EPR Instrumentation Diploma Thesis Defense Matthias Kolja Miehl October 22, 2010 at 2:30 pm Milwaukee, Wisconsin, USA Medical College of Wisconsin MACC Fund Research Center Room L3075
LabVIEW based Computer Control ◮ Control and acquisition framework ◮ Easily change hardware ◮ All experiments in one application 2 / 72
LabVIEW based Computer Control ◮ Control and acquisition framework ◮ Easily change hardware ◮ All experiments in one application Figure: L-Band spectrometer at MCW’s Biophysics Research Department 3 / 72
Contents 1 Introduction Concept 2 Implementation 3 Test 4 5 Summary and Vision
Contents 1 Introduction Concept 2 Implementation 3 Test 4 5 Summary and Vision
LabVIEW based Computer Control Introduction Motivation Need MCW Research: ◮ New experiments ◮ Different spectrometers ◮ Changing Hardware 6 / 72
LabVIEW based Computer Control Introduction Motivation Need MCW Research: ◮ New experiments ◮ Different spectrometers ◮ Changing Hardware Situation Use of separate programs for ◮ each experiment, ◮ each spectrometer, and ◮ were rewritten for new instruments. 7 / 72
LabVIEW based Computer Control Introduction Motivation Need MCW Research: ◮ New experiments ◮ Different spectrometers ◮ Changing Hardware Situation Use of separate programs for ◮ each experiment, ◮ each spectrometer, and ◮ were rewritten for new instruments. Problem ◮ Labor and time intensive tasks ◮ Reduction of actual research time 8 / 72
LabVIEW based Computer Control Introduction Motivation Motivation Increase the actual research time by reducing redundancy. ◮ Experiment implementation ◮ Changing hardware 9 / 72
LabVIEW based Computer Control Introduction Motivation Motivation Increase the actual research time by reducing redundancy. ◮ Experiment implementation ◮ Changing hardware Goal Versatile framework: ◮ All experiments ◮ Every spectrometer 10 / 72
LabVIEW based Computer Control Introduction Related Work Existing Approaches ◮ WinEPR ◮ EWWin ◮ SpecMan4EPR 11 / 72
LabVIEW based Computer Control Introduction Related Work Existing Approaches ◮ WinEPR ◮ EWWin ◮ SpecMan4EPR MCW’s Requirements ◮ Exchange of instruments ◮ Storing experiment settings ◮ Easy extension by customer 12 / 72
Contents 1 Introduction Concept 2 Implementation 3 Test 4 5 Summary and Vision
LabVIEW based Computer Control Concept Key Requirements Key Requirements ◮ All experiments in one application ◮ Instruments easily exchangeable ◮ Maintainability and extendability ◮ 32 and 64-bit driver support 14 / 72
LabVIEW based Computer Control Concept Overall Structure Controls and Exp. ... Indicators GUI Internal Data Flow Core of 64-bit Logic Main Appl. Inter-Process Communication Instrument Hardware 64 or 32-bit ... Abstraction Driver Bus Instrument ... Hardware Figure: Overall application structure (concept) 15 / 72
Contents 1 Introduction Concept 2 Implementation 3 Test 4 5 Summary and Vision
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 17 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 18 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Figure: Tab control structure of the application 19 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Figure: Tab control structure as the operator sees it 20 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 21 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Figure: Main program event handler loop 22 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 23 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Figure: Implementation of the main program’s parallel loop structure 24 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 25 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 26 / 72
LabVIEW based Computer Control Implementation Overall Structure and Used Technologies Concept Implementation Controls and Client Exp. ... Indicators Tab Controls GUI Internal Event Data Flow Structure Core of Multiple-Loop 64-bit Logic EXE Main Appl. Appl. Framework Inter-Process STM Communication 64 or 32-bit Instrument Hardware Server as ... EXE Driver Abstraction EXE Module Bus GPIB, LXI, ... Instrument ... Hardware Hardware Figure: Overall application structure (implementation) 27 / 72
LabVIEW based Computer Control Implementation Driver Management Startup of Drivers starts Driver 1 x Main Appl. Driver 2 y Driver 2 z Read port Write port for from respective each driver section text_based_variable.ini x , y , z Communication STM Driver 1 Port x Main Appl. Driver 2 Port y Driver 2 Port z 28 / 72
LabVIEW based Computer Control Implementation STM Advantages: ◮ Command-based 29 / 72
LabVIEW based Computer Control Implementation STM Advantages: ◮ Command-based ◮ Hides transport layer details 30 / 72
LabVIEW based Computer Control Implementation STM Advantages: ◮ Command-based ◮ Hides transport layer details ◮ Minimizes network traffic 31 / 72
LabVIEW based Computer Control Implementation STM Advantages: ◮ Command-based ◮ Hides transport layer details ◮ Minimizes network traffic ◮ Small overhead 32 / 72
LabVIEW based Computer Control Implementation STM Advantages: ◮ Command-based ◮ Hides transport layer details ◮ Minimizes network traffic ◮ Small overhead ◮ High throughput 33 / 72
LabVIEW based Computer Control Implementation STM Variant Data 34 / 72
LabVIEW based Computer Control Implementation STM Variant Data Figure: Code of modified STM write function block 35 / 72
LabVIEW based Computer Control Implementation STM Variant Data Figure: Code of modified STM write function block Figure: Code of modified STM read function block 36 / 72
LabVIEW based Computer Control Implementation STM Variant Data Figure: Modified STM function blocks for writing and reading 37 / 72
Recommend
More recommend