DAQBench More easy, More functions

52
ADLINK Confidential DAQBench More easy, More functions Rick Lee Staff Engineer

description

DAQBench More easy, More functions. Rick Lee Staff Engineer. Agenda. ActiveX Control Introduction of DAQBench DAQBench ActiveX Controls Objects Q & A. Property. Name Value. Method. Event. Interface of ActiveX Control. Interface: Property - PowerPoint PPT Presentation

Transcript of DAQBench More easy, More functions

Page 1: DAQBench  More easy, More functions

ADLINK Confidential

DAQBench More easy, More functions

Rick Lee

Staff Engineer

Page 2: DAQBench  More easy, More functions

ADLINK Confidential

Agenda

ActiveX Control Introduction of DAQBench DAQBench ActiveX Controls Objects Q & A

Page 3: DAQBench  More easy, More functions

ADLINK Confidential

Interface of ActiveX ControlInterface: Property

– Design time : Read/Write by Property Page

– Run time : Read/Write Method

– Run time : Invoke Event

– Run time : Be fired OCX file is similar DLL

file

NameValue. . . . .

Method

Event

Property

Page 4: DAQBench  More easy, More functions

ADLINK Confidential

Switch ActiveX Control

Property– Back color, Top color

Method– SetState(state)

Event– ButtonClick(state)

Page 5: DAQBench  More easy, More functions

ADLINK Confidential

ApplicationLayer

ProgramInterfaceLayer

Applications and Tools

PCIS-DASK(DLL)

Windows 95/98/NT/2000

Win-32 Device Drivers

ADLINK H/W Products

DAQBench(ActiveXcontrols)

Interface to Other Software(LabVIEW, DasyLab,

HP VEE, ISaGRAF etc.)

Driver Layer

OperatingSystem Layer

Device Layer

DAQBench Software Architecture

Page 6: DAQBench  More easy, More functions

ADLINK Confidential

DAQBenchADLINK ActiveX Object Software

Product A collection of ActiveX ControlsObject Oriented ProgrammingSix parts

– NuDAQ ActiveX Controls– NuDAM ActiveX Controls– User Interface ActiveX Controls– Analysis Control– Equipment Controls– Information Integration Controls

Page 7: DAQBench  More easy, More functions

ADLINK Confidential

Six Parts of DAQBench User Interface ActiveX Controls

– Boolean, 7Segment, Slide, Knob, Graph, chart, XYGraph, IntenGraph, IntenChart

NuDAQ ActiveX Controls– ADLINK NuDAQ PCI DAQ card

NuDAM ActiveX Controls– ADLINK NuDAM RS-232/485 remote control modules

Analysis Control– array management, statistical functions

Equipment Controls– Industry Automation symbol

Information Integration Controls– Data Base Linker, Excel Linker, OPC Client, RDA(Remote data access)

Page 8: DAQBench  More easy, More functions

ADLINK Confidential

ActiveX ContainerVisual Basic Visual C++ Delphi Borland C++

Bulider Internet Explorer VB for Application. . . . . . . . .

Page 9: DAQBench  More easy, More functions

ADLINK Confidential

The Benefit of DAQBenchA complete ActiveX Controls set

– Include H/W, User Interface, Industry Automation symbol, statistical function, DataBase and Excel linker function, Remote Data Access function

Provide a more easy way to implement control/monitor system– ActiveX object + ActiveX container– “Software IC” Concept

Reduce Software Development Cost– Support, Tool, Implementation

Page 10: DAQBench  More easy, More functions

ADLINK Confidential

Device Manager

Program on Local Machine

Device Manager

Local Site H/W

Remote Site H/W

RDA ServerLocal Site

Remote Site

The Map between H/W and Device

Name

Use Device Name for operation

Page 11: DAQBench  More easy, More functions

ADLINK Confidential

First Demo of DAQBenchH/W environment

– DAQ card : PCI-9112

S/W environment– VB 5.0– DAQBench

Object– Implement a 16 DI and 16 DO example– Use controls : PCI-9112, DBoolean

Page 12: DAQBench  More easy, More functions

ADLINK Confidential

ActiveX Controls of DAQBenchUser Interface ActiveX Controls

– run at Windows 95/98/NT– two OCX files

DBUI.OCX - some user interface contrls

Dboolean, Dslide, Dknob, D7Segment

DBGraph.OCX - some graph controls

DGraph, DChart, DXYGraph, DIntenGraph,

DIntenChart

Page 13: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDboolean(Demo)

Page 14: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of DBoolean– Property / Property Page

• Style, Caption, Font, Color, Number, Distance, Only One,• Mode, Orientation, Switch Dir, State, Index, Dir, Position,• Value

– Methods• SetState(index), GetState(index)

– Events• ButtonClick(ButtonNo, State)

Page 15: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlD7Segment Control (Demo)

Page 16: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of D7Segment– Property / Property Page

• Digit Number, Digit After Point, Prefix With Zero, Signed, Declined, Transparent, Show Unused Segment, Color

• Value

– Methods• None

– Events• Overflow

Page 17: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDKnob (Demo)

Page 18: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of DKnob– Property / Property Page

• Pattern Type, Style, Caption, Font, Border, Digit, Color,• Max, Min, Log, Inverted, Mapping, RangMax, RangeMin,• Ticks, Format, Value Pair, Pointer• Value

– Methods• None

– Events• Change(PointerNo, Value)

Page 19: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDSlide (Demo)

Page 20: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlInterface of DSlide

– Property / Property Page• Pattern Type, Style, Caption, Font, Border, Digit, Color,• Max, Min, Log, Inverted, Mapping, RangMax, RangeMin,• Ticks, Format, Value Pair, Pointer• Value

– Methods• None

– Events• Change(PointerNo, Value)

Page 21: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDChart (Demo)

Page 22: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlInterface of DChart

– Property / Property Page• Plot Mode, Plot Num, Updated Mode, History Length,• Caption, Font, Color, • XAxis: Scroll Bar, View Number, Time Base, Time Interval• YAxis: Max, Min, Log, Mapping, RangeMAx, RangeMin• Ticks, Format, Plot

– Methods• PlotChart(Data), PlotCharts(Data, PlotNum),• ClearPlots(), Refresh()

– Events• None

Page 23: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDGraph (Demo)

Page 24: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of DGraph– Property / Property Page

• Plot Num, Caption, Font, Color, • XAxis: Auto Scale, Scroll Bar, View Number, Time Base,

Time Interval• YAxis: Auto Scale, Max, Min, Log, Mapping, RangeMAx,

RangeMin• Ticks, Format, Plot

– Methods• PlotGraph(Data, PlotNo), PlotGraphs(Data, PlotNum),• ClearPlots(), Refresh()

– Events• None

Page 25: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDXYGraph (Demo)

Page 26: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlInterface of DXYGraph

– Property / Property Page• Plot Num, Caption, Font, Color, • XAxis: Auto Scale, Scroll bar, Max, Min, Log, Mapping,

RangeMAx, RangeMin• YAxis: Auto Scale, Scroll bar, Max, Min, Log, Mapping,

RangeMAx, RangeMin• Ticks, Format, Plot

– Methods• PlotXY(xyData, PlotNo), PlotXYs(xData, yData),• ClearPlots(), Refresh()

– Events• None

Page 27: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDIntenChart (Demo)

Page 28: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of DIntenChart– Property / Property Page

• Plot Mode, Updated Mode, History Length• Caption, Font, Color, • X View Num, Y View Num, Z Visible, X Scaroll Bar,• Time Base, Time Interval• Ticks, Format, ColorMap

– Methods• AddPlane(xyData), ClearPlot()

– Events• None

Page 29: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX ControlDIntenGraph

Page 30: DAQBench  More easy, More functions

ADLINK Confidential

User Interface ActiveX Control

Interface of DIntenGraph– Property / Property Page

• Caption, Font, Color, • X View Num, Y View Num, Z Visible, X Auto Scale• Time Base, Time Interval• Ticks, Format, ColorMap

– Methods• AddPlane(xyData), ClearPlot()

– Events• None

Page 31: DAQBench  More easy, More functions

ADLINK Confidential

ActiveX Controls of DAQBenchEquipment ActiveX Controls

– some pattern of equipment at industry automation– run at Windows 95/98/NT– one OCX file– include

• Pumps• Pipes• Tanks• Valves• Motors

Page 32: DAQBench  More easy, More functions

ADLINK Confidential

Equipment ActiveX Control

Page 33: DAQBench  More easy, More functions

ADLINK Confidential

Equipment ActiveX Control

Page 34: DAQBench  More easy, More functions

ADLINK Confidential

ActiveX Controls of DAQBench NuDAM ActiveX Controls

– support ADLINK NuDAM Modules– run at Windows 95/98/NT– four OCX files– NDDigital.OCX for digital I/O modules

ND6050, ND6052, ND6053, ND6054, ND6056, ND6058, ND6060, ND6063

– NDAnalog.OCX for analog I/O modules

ND6011, ND6012, ND6013, ND6014, ND6017, ND6018, ND6021, ND6024

– NDCounter.OCX - ND6080– NDHost.OCX - NDHost

Page 35: DAQBench  More easy, More functions

ADLINK Confidential

NuDAM ActiveX ControlNuDAM - Distributed DAQ Module

– Serial link, RS232/485– One comport can link to 255 modules(maximum)– Each module must one unique address on same link– Use NuDAM Administrator to configure setting

Page 36: DAQBench  More easy, More functions

ADLINK Confidential

NuDAM ActiveX Control

A Bitmap representAssign address of NuDAM ControlComPort driver use Microsoft Comm

ControlFirst open Comm ControlAssign PortHandle of NuDAM ControlUse Property to Get/Set DI, DO, AI, AI

Page 37: DAQBench  More easy, More functions

ADLINK Confidential

NuDAM ActiveX ControlMSComm1.ComPort = 1MSComm1.Settings = “9600,n,8,1”MSComm1.PortOpen = TrueND60501.PortHandle = MSComm1.ComID . . . . . . . . . . . . .

Com Port 1

Page 38: DAQBench  More easy, More functions

ADLINK Confidential

Property(See Help or PDF file)methods (See Help or PDF file)

NuDAM ActiveX Control

Page 39: DAQBench  More easy, More functions

ADLINK Confidential

ActiveX Controls of DAQBenchDAQ ActiveX Controls

– support ADLINK NuDAQ PCI cards– now, only run at Windows NT– two OCX filesDigital.OCX for digital I/O cards (10 controls)

Pci7200, Pci7230, Pci7234, Pci7248, Pci7296, Pci7250, Pci7300, Pci7432, Pci7433, Pci7434

Multiple.OCX for Multiple function cards (8 controls)Pci9111, Pci9112, Pci9113, Pci9114, Pci9118, Pci9812, Pci6208, Pci8554

Page 40: DAQBench  More easy, More functions

ADLINK Confidential

NuDAQ ActiveX Control Property (See Help or PDF file) Methods (See Help or PDF file) Event (See Help or PDF file)

Page 41: DAQBench  More easy, More functions

ADLINK Confidential

Remote Data Access

Program on Local Machine

Device Manager

Local Site H/W

Remote Site H/W

RDA ServerLocal Site

Remote Site

The Map between H/W and Device

Name

Use Device Name for operation

Page 42: DAQBench  More easy, More functions

ADLINK Confidential

Remote Device Access

Use NuDAQCfg utility to define Devices– Add local NuDAQ cards

• Automatically scan local PCI cards

– Add remote NuDAQ cards• RDA Server must be running on remote machine• Connect remote machine

– Specify Device Name– Select one NuDAQ card

Page 43: DAQBench  More easy, More functions

ADLINK Confidential

Remote Device Access

Page 44: DAQBench  More easy, More functions

ADLINK Confidential

Remote Device Access

RDA Server– If RDA Server be running then this machine is a

NuDAQ RDA server

Page 45: DAQBench  More easy, More functions

ADLINK Confidential

ExcelLinker ActiveX ControlAdvantage

– Data be automatically link to Excel Application– Can auto update the data of cells on Excel

WorkSheet

Operation– Specify name of excel file– Specify name of worksheet – Specify start cells and column number– Set Array Data– Call ExcelLinking() Method

Page 46: DAQBench  More easy, More functions

ADLINK Confidential

What is OPC?

OLE for Process Control An Industry Standard by OPC Foundation New generation driver for industry automation hardware Provide plug and play software and hardware components from different supplier Base on COM/DCOM of Microsoft Data Sharing and Distributing

Page 47: DAQBench  More easy, More functions

ADLINK Confidential

Traditional Device Driver Problem

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

DisplayApplication

TrendApplication

ReportApplication

Page 48: DAQBench  More easy, More functions

ADLINK Confidential

How does OPC Solve the Problem?

SoftwareDriver

SoftwareDriver

SoftwareDriver

SoftwareDriver

OPC OPC OPC OPC

DisplayApplication

TrendApplication

ReportApplication

OPC OPC OPC

Page 49: DAQBench  More easy, More functions

ADLINK Confidential

Features of OPC Data Access

Based on COM Flexible - to support many applications Efficient & Scalable - to support large applications High performance - well behaved on a Network Easy to understand Widely accepted

Page 50: DAQBench  More easy, More functions

ADLINK Confidential

OPC Client control

OPC Client

OPCServer

OPCGroup

OPCGroup

OPCGroup

ItemItemItem

ItemItemItem

ItemItemItem

NuDAMOPC

Server

OPCInterface

OtherOPC

Server

OPCInterface

OPC ClientControl

OPCInterface

Network

Page 51: DAQBench  More easy, More functions

ADLINK Confidential

DBAccess ControlAdvantage

– Integrate Database– Don’t program SQL– Through ODBC

Operation– Specify Data Source Name in ODBC– Specify Tables and Columns– Specify Query Condition– Call ExecutXXXX(Data) Method

Page 52: DAQBench  More easy, More functions

ADLINK Confidential

Q & A