Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

57
Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW

Transcript of Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Page 1: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

ADE

Rapid Application Development Environment

based on LabVIEW

Page 2: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Outline

MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

Page 3: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

EN-ICE-MTA

[email protected]

Page 4: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

The Challenge

Linux Windows Mac

GPN

TN

DB CMW RBAC Timing Files PLC DAQ

Page 5: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Fast programming Rapid learning curve Drag and drop GUI development Wide range of analysis libraries Light/independent environment

Integration with CERN infrastructures

LabVIEW

Initial Requirements

Page 6: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Training

Support

LabVIEW

Templates Configuration files Documentation

DB Files

JAPC

libs

PLCCMWJava

RADE Framework

Page 7: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

LabVIEW user application

LabVIEW

C/C++ shared

libJava

Serv

er

Serv

er

Serv

er

SDDSPLC

MTA-libRBAC RIO

SQLTGM

ALARMeLogBook

RADE Core Technology

Java Java

Page 8: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

RADE Palette

Page 9: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Outline

MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

Page 10: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Coping With Large Applications

Page 11: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Fast programming Rapid learning curve Drag and drop GUI development Wide range of analysis libraries Light/independent environment

Integration with CERN infrastructures Source control and distribution Dedicated templates

LabVIEW

Large Application Requirements

Page 12: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Source Control

Page 13: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

State Machine Template

Page 14: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Development help RADE design patterns and templates LabVIEW Guides: cern.ch/enice/RADE-Guides

Code review: make LabVIEW code beautiful

Page 15: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Outline MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

Page 16: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE today

Page 17: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

LabVIEW & RADE Support

[email protected] cern.ch/labview cern.ch/rade

Thank you for your attention !

Page 18: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Outline MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

RIO: Live data from the front-ends RBAC: Role based access control SQL: CERN Database connections MTAlib and OpenG toolkits

Page 19: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

RADE Input/Output (RIO)Live data from the front-ends

Page 20: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

What is RIO?

CERN front-ends

JAPC

InCA

RADE Input/Output (RIO)

Client applications

Page 21: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

JAPC or CMW?

JAPC

InCA

Page 22: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

RIO: Basics

1.

2.

3.

Page 23: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Get data from front-end

Page 24: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Set data to front-end

Page 25: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Subscription to front-end data

Put operation.vi in a loop Check for timeout and error

Page 26: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RIO data types

Field name Field data type

D Double

Bool Boolean

C2D300 String [ ]

I642D300 I64 [ ] [ ]

C1D300 String

Japc2Lv_T2-abcopm02/Mixed:

Field name in LV = field name of deviceField type in LV = field type of device

Page 27: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Goal: Implement GET/SET/Subscribe operations for CERN device using RIO Toolkit.

ExerciseGet, Set and Subscribe data on a CERN device

Page 28: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

The device “PR.GSQDN1/CCV” has the following fields: lambdaX: I32 data: Double msg: String Which of the following Data Type is not correct?

Quiz 1

1. 2. 3. 4.

Page 29: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

The device “PR.BPM/Setting” has the following fields: bucketBBB: I32[ ] bucketSelect: I16 gain: I32Which of the following Data Type is not correct?

Quiz 2

1. 2. 3. 4.

Page 30: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

What is wrong with this VI?

Quiz 3

Page 31: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

This VI is correct.

Quiz 3

Page 32: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Outline MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

RIO: Live data from the front-ends RBAC: Role based access control SQL: CERN Database connections MTAlib and OpenG toolkits

Page 33: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RBAC

RADE Applications EN-ICE-MTA

Role Based Access Control

Page 34: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

• The token is stored by a numeric reference

• Valid until expired or destroyed

• Don’t store your password on the block diagram: Enter your password in a GUI at startup of your application

RBACUsage

Page 35: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Outline MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

RIO: Live data from the front-ends RBAC: Role based access control SQL: CERN Database connections MTAlib and OpenG toolkits

Page 36: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

SQLCERN Database Connections

Page 37: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Query to Database

Page 38: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

LHC Logging and Measurement databases

Page 39: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

LHC Logging and Measurement databases

Extracts statistics for a signal data:

Page 40: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Search signal names

Page 41: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Goal: Extract signal data from LHC Logging DB using the

SQL_MA.vi

ExerciseExtract data from LHC Logging DB

Page 42: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Which VI is used to execute SQL queries for CERN databases? SQL.vi

Quiz 4

Where can we find it in the RADE palette? RADE -> SQL

Page 43: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

How to extract signal data from LHC logging Database?

SQL-MA.vi -> lhclog

Quiz 5

Page 44: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Outline MTA Why RADE? The challenge Coping with large applications RADE today Hands On session

RIO: Live data from the front-ends RBAC: Role based access control SQL: CERN Database connections MTAlib and OpenG toolkits

Page 45: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

MTA-lib

RADE Applications EN-ICE-MTA

Page 46: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

Non-NI LabVIEW Communities:www.openg.org – Forum and wikiwww.lavag.org – Forum and file

repositoryYou’d like to have something more in the MTA palette?-> Let us know

OpenG community

• Non-NI LabVIEW community

• Several green “time-saving” VIs

• Many polymorphic VIs→ build executable to improve performance

Page 47: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

MTA-lib: Data Palette

RADE Applications EN-ICE-MTA

Variant: A container that can contain different data types.Great for generic programming, but can add

overhead.

Page 48: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

OpenG Use case: Variants containing generic data.

Page 49: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

MTA-lib: Array Palette

RADE Applications EN-ICE-MTA

Page 50: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

OpenG Use case: Array manipulation

Remove Duplicates From 1D Array

Filter 1D Array

Page 51: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

OpenG Use case: Array manipulation

Search 1D array

Sort array

Page 52: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

MTA-lib: String Palette

RADE Applications EN-ICE-MTA

Page 53: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

MTA-lib: Time Palette

RADE Applications EN-ICE-MTA

Page 54: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

OpenG Use case: Wait/delay

OpenG

Additional functionalities:• Wait on Error?• Abort (optional)

Also “Wait Until Next ms Multiple”

LabVIEW

Page 55: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

RADE Applications EN-ICE-MTA

The right size front panel without effort !

Fit front panel to largest decoration

MTA-lib: Application Control

Page 56: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

www.cern.ch/rade

Page 57: Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.

Ind

ust

rial

Con

trol

En

gin

eeri

ng

Questions