5th TAC Workshop 5-7 June 2008 Usage of LabVIEW for TAC IR FEL THM IR SEL İçin LabVIEW Kullanımı Metin AYDAR Dumlupınar Üniversitesi Metin AYDAR, Dumlupınar Üniversitesi 1
Choice of Control System Commercially availability Reliability Man power necessary to implement the system Maintainance and future developments PLC for process layer (ELBE: Siemens Simatic, Beckhoff Busterminals) WinCC for slow control (ELBE: Siemens) PXI with LabWindows/ LabVIEW (National Instruments) for image acquisition and beam diagnostics. (ELBE, FELIX) Metin AYDAR, Dumlupınar Üniversitesi 2
WinCC (Windows Control Center) Running on PCs with Windows NT/ 2000 SCADA System including Runtime System and Development Tools Contains: Data manager Data base (Sybase SQL Anywhere) Archiving system Alarm module Tag logging Access control Editor for graphical user interface Metin AYDAR, Dumlupınar Üniversitesi 3
WinCC Main Features: Up to 6 WinCC Server with Redundancy Up to 16 WinCC Clients Max. 64.000 Power Tags Min. time for Tag Logging 250ms OPC Service SQL Interface Web Service Metin AYDAR, Dumlupınar Üniversitesi 4
Only Hardware No more hardware such as oscilloscopes and multimeters Analog IO VI : Virtual Instrumentation Digital IO PXI : extended PCI bus counters, timers DAQ : Data Acquison Metin AYDAR, Dumlupınar Üniversitesi 5
DAQ : Data Acquisition PXI : extended PCI bus There are about 1600 DAQ Cards that National Instruments Supports to acquire data from sensor environments PCI Bus PXI start trigger trigger bus Dx Metin AYDAR, Dumlupınar Üniversitesi 6
Virtual Instruments LabVIEW programs are called virtual instruments, or VIs, because their appearance and operation imitate physical instruments, such as oscilloscopes and multimeters. LabVIEW contains a comprehensive set of tools for acquiring, analyzing, displaying, and storing data, as well as tools to help us troubleshoot code we write. Metin AYDAR, Dumlupınar Üniversitesi 7
Front Panel In LabVIEW, we build a user interface, or front panel, with controls and indicators. Controls are knobs, push buttons, dials, and other input mechanisms. Indicators are graphs, LEDs, and other output displays. Metin AYDAR, Dumlupınar Üniversitesi 8
Block Diagram Codes can be added using VIs and structures to control the front panel objects. LabVIEW can communicate with hardware such as data acquisition, vision, and motion control devices, as well as PXI, VXI, RS232, and RS485 instruments. Metin AYDAR, Dumlupınar Üniversitesi 9
DAQ Assistant The DAQ Assistant Express VI allows to build measurement channels or tasks, interactively. A programming interface, NI-DAQmx which is used to communicate with data acquisition devices. It can configure channels and tasks. Tasks A collection of one or more virtual channels with timing, triggering, and other properties. Conceptually, a task represents a measurement or generation you want to perform. Metin AYDAR, Dumlupınar Üniversitesi 10
Processing the Acquired Data Formula Express VI uses a calculator interface to create mathematical formulas. This VI can be used to perform most math Functions that a basic scientific calculator can compute. Metin AYDAR, Dumlupınar Üniversitesi 11
Saving Data The Write To Measurement File Express VI saves data that a VI generates and analyzes to a.lvm,.tdm, or.tdms measurement file..lvm text-based file which has up to six digits of precision.tdm binary file that contains waveform data.tdms binary TDM Streaming file that provides faster writing performance Metin AYDAR, Dumlupınar Üniversitesi 12
redesign redesign Design simulate Prototype construct Product validate validate DAQ + PXI or another IO Port + Real Time Operating System + LabVIEW Metin AYDAR, Dumlupınar Üniversitesi 13
Integration of LabWindows / LabVIEW Applications For triggered DAQ at Diagnostic Elements are: Stripline Monitors Rf- Parameters Beam Viewers with Cameras and Frame Grabber Interaction with WinCC via OPC Experience and Conclusions Drawbacks are: To implement a modified Project one has to stop the WinCC Server The Access Control in WinCC is associated to the Objects in the GUI Metin AYDAR, Dumlupınar Üniversitesi 14
Availability for FELs The LabVIEW drivers are available for several PC based devices used for optics measurements at FEL facilities. FEL accelerator and optical components are implemented in the Experimental Physics Industrial Controls system (EPICS). A few of the parameters in the LabVIEW applications available to the operators during FEL operations using remote workstations in the EPICS environment through EPICS channel access (CA). It is not necessary to include all of the LabVIEW controls for remote operation over the LAN in EPICS. Metin AYDAR, Dumlupınar Üniversitesi 15
WinCC Beam Control Capture ELBE Metin AYDAR, Dumlupınar Üniversitesi 16
Availability for FELs (LANL) A quick and simple solution was to use the LabVIEW channel access interface developed at LANL with generic EPICS records, and to add only the controls needed by the operator. In this way much time and money was saved by the use of PC based hardware, and simple modification of vendor supplied LabVIEW VI s. Metin AYDAR, Dumlupınar Üniversitesi 17
ELBE Control System Metin AYDAR, Dumlupınar Üniversitesi 18
EPICS on a PC The LabVIEW application can be controlled through a remote display screen with EPICS CA. Communication via EPICS is through records located on a remote server that were reserved for this purpose. With CA polling the LabVIEW program observes requested operator commands from the EPICS display manager (DM). Metin AYDAR, Dumlupınar Üniversitesi 19
Operator Controls Example (JLAB) The remote DM operator screen as shown in figure was used to display the FEL light spectra. The X any Y axes for the display were provided by two EPICS waveform records. Metin AYDAR, Dumlupınar Üniversitesi 20
Conclusion The LabVIEW software and VIs bring more lower design costs. LabVIEW and other frameworks can be used together to get status of a FEL systems and to control it at some check points. We need to write and control our own LabVIEW substructure for TAC Facility Metin AYDAR, Dumlupınar Üniversitesi 21
References www.ni.com LV_Getting_Started manual, LV_Fundamentals manual, LabVIEW Help Control System of Strahlungsquelle ELBE at Forschungszentrum Rossendorf D. Proehl, F. Gabriel, W. Glaeser, R. Jainsch, F. Herbrand, K.-W. Leege, A. Schamlott, Controls Workshop at GSI, 12.05.2003 The Control System of Strahlungsquelle ELBE at Forschungszentrum Dresden-Rossendorf, Vortrag DESY Zeuthen, 13.03.2007 INCORPORATION OF A PBSE ARRAY BASED SPECTROGRAPH INTO EPICS USING LABVIEW AT THE JLAB FEL FACILITY D. Hardy, S. Benson, M. Shinn S. Zhang Proceedings of the 27th International Free Electron Laser Conference Hızlandırıcı Teknolojileri: Dünya ve Türkiye, THM Projesi: Genel Durum ve Yol Haritası Prof. Dr. Ömer Yavaş, Dumlupınar Üniversitesi 09.05.2008 Metin AYDAR, Dumlupınar Üniversitesi 22
Thanks for your attention Metin AYDAR, Dumlupınar Üniversitesi 23