Industrial Control Engineering ADE Rapid Application Development Environment based on LabVIEW.
-
Upload
dinah-fields -
Category
Documents
-
view
215 -
download
1
Transcript of 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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Outline
MTA Why RADE? The challenge Coping with large applications RADE today Hands On session
Ind
ust
rial
Con
trol
En
gin
eeri
ng
The Challenge
Linux Windows Mac
GPN
TN
DB CMW RBAC Timing Files PLC DAQ
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Training
Support
LabVIEW
Templates Configuration files Documentation
DB Files
JAPC
libs
PLCCMWJava
RADE Framework
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
RADE Palette
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Outline
MTA Why RADE? The challenge Coping with large applications RADE today Hands On session
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Coping With Large Applications
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Source Control
Ind
ust
rial
Con
trol
En
gin
eeri
ng
State Machine Template
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
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE today
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 !
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
RADE Input/Output (RIO)Live data from the front-ends
Ind
ust
rial
Con
trol
En
gin
eeri
ng
What is RIO?
CERN front-ends
JAPC
InCA
RADE Input/Output (RIO)
Client applications
Ind
ust
rial
Con
trol
En
gin
eeri
ng
JAPC or CMW?
JAPC
InCA
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
RIO: Basics
1.
2.
3.
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Get data from front-end
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Set data to front-end
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
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
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
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.
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.
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
What is wrong with this VI?
Quiz 3
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
This VI is correct.
Quiz 3
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RBAC
RADE Applications EN-ICE-MTA
Role Based Access Control
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
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
SQLCERN Database Connections
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
Query to Database
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
LHC Logging and Measurement databases
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:
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
Search signal names
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
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
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
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
MTA-lib
RADE Applications EN-ICE-MTA
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
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.
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
OpenG Use case: Variants containing generic data.
Ind
ust
rial
Con
trol
En
gin
eeri
ng
MTA-lib: Array Palette
RADE Applications EN-ICE-MTA
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
RADE Applications EN-ICE-MTA
OpenG Use case: Array manipulation
Search 1D array
Sort array
Ind
ust
rial
Con
trol
En
gin
eeri
ng
MTA-lib: String Palette
RADE Applications EN-ICE-MTA
Ind
ust
rial
Con
trol
En
gin
eeri
ng
MTA-lib: Time Palette
RADE Applications EN-ICE-MTA
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
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
Ind
ust
rial
Con
trol
En
gin
eeri
ng
www.cern.ch/rade
Ind
ust
rial
Con
trol
En
gin
eeri
ng
Questions