advantech inspectorpro...

14
Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE Ian Shen 2015/3/27

Upload: dokhuong

Post on 23-Apr-2018

246 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Advantech InspectorPro

Create InspectorPro UI using LabView

IAG PAE Ian Shen

2015/3/27

Page 2: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Create InspectorPRO API

1. InspectorPRO API Object includes two parts: a) IpeDspCtrlLib

ActiveX Component

Imagewindow display

b) IpeEngCtrlLib

.NET Component

Control the Engine(interface of InspectorPRO in .NET)

2. The UI includes three parts: a) Engine Initialization(Connect InspectorPRO and

Imagewindow display)

b) HMI control

c) End the program, release the resource

Page 3: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Basic way of Using the Components

Page 4: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Component – IpeDspCtrl

1. New一Invoke Node

2. Choose IpeDspCtrlLib.IpeDspCtrl from the Class of Property Node (if this is not in the list, browse and find it)

1 2

3

Page 5: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Component – IpeDspCtrl

3. Choose method ConnectImgWindow

1. Class 2. Method 3. Variables

Page 6: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Create New一 ActiveX Container connect to ImageWindow

在VI上新增一ActiveX Container

Page 7: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Rename ImageWindow

Page 8: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Connect IpeDspCtrl

Page 9: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

System Initialization

Page 10: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Initialization: Block Diagram

Declare EngineClass Object

Initialize Engine

Connect Engine and ImageWindow

Load investgation(.ivs)

ImageWindow Name

ActiveX Container

Page 11: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

HMI Control

Page 12: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Change Inspection Mode: Block Diagram

I_MODE declaration Change mode

Page 13: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

End Program

Page 14: Advantech InspectorPro LabView呼叫API及COM元件advdownload.advantech.com/productfile/Downloadfile3/1-106HC9O...Advantech InspectorPro Create InspectorPro UI using LabView IAG PAE

Dispose: Block Diagram

Order:

– DisconnectImgWindow() >> EngTerminate() >> EXIT