caqtdm Tutorial Jim Stevens APS Controls Group October 9, 2014



Similar documents
Using Adobe Dreamweaver CS4 (10.0)

Interacting with Users

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

As you look at an imac you will notice that there are no buttons on the front of the machine as shown in figure 1.

... Asbru Web Content Management System. Getting Started. Easily & Inexpensively Create, Publish & Manage Your Websites

Adobe Dreamweaver CC 14 Tutorial

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

How To Use Spss

TakeMySelfie ios App Documentation

VisIt Visualization Tool

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Creating Fill-able Forms using Acrobat 8.0: Part 1

Unified Monitoring Portal Online Help Dashboard Designer

First Bytes Programming Lab 2

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Wakanda Studio Features

SAS BI Dashboard 4.3. User's Guide. SAS Documentation

6. If you want to enter specific formats, click the Format Tab to auto format the information that is entered into the field.

such as USB drives, connected servers, DVDs, CDs, configure file labels, and the information that appears in the Finder window sidebar.

How to create buttons and navigation bars

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

ios App for Mobile Website! Documentation!

ITP 101 Project 3 - Dreamweaver

Writer Guide. Chapter 15 Using Forms in Writer

JOOMLA 2.5 MANUAL WEBSITEDESIGN.CO.ZA

Welcome to CorelDRAW, a comprehensive vector-based drawing and graphic-design program for the graphics professional.

Introduction to Drupal

Create a Poster Using Publisher

Dreamweaver. Introduction to Editing Web Pages

How to create pop-up menus

Build Your First Web-based Report Using the SAS 9.2 Business Intelligence Clients

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query.

Trading Integration for ViTrade

Getting Started with Excel Table of Contents

Mail 8.2 for Apple OSX: Configure IMAP/POP/SMTP

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Using the Remote Desktop Connection for Mac

Fireworks CS4 Tutorial Part 1: Intro

Adobe Illustrator CS5 Part 1: Introduction to Illustrator

Welcome to CSU The Software Used To Data Conference.

Exercise 10: Basic LabVIEW Programming

Flash MX Image Animation

Making Visio Diagrams Come Alive with Data

WebSphere Business Monitor V6.2 KPI history and prediction lab

The following was taken directly from the ARD (Apple Remote Desktop) operator s manual:

Finance Reporting. Millennium FAST. User Guide Version 4.0. Memorial University of Newfoundland. September 2013

Getting Started Guide. Chapter 14 Customizing LibreOffice

Hallpass Instructions for Connecting to Mac with a Mac

How to build Dashboard - Step by Step tutorial/recipe

Business Objects Version 5 : Introduction

MATLAB. Creating Graphical User Interfaces Version 6. The Language of Technical Computing. Computation. Visualization. Programming

Dreamweaver. Links and Tables

Smart Board Notebook Software A guide for new Smart Board users

DNNCentric Custom Form Creator. User Manual

Lession: 2 Animation Tool: Synfig Card or Page based Icon and Event based Time based Pencil: Synfig Studio: Getting Started: Toolbox Canvas Panels

Chapter 15 Using Forms in Writer

Writer Guide. Chapter 15 Using Forms in Writer

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Mouse and Pointer Settings. Technical Brief

Digital Signage with Apps

PowerLogic ION Enterprise 6.0

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Gestation Period as a function of Lifespan

PA Payroll Exercise for Intermediate Excel

KaleidaGraph Quick Start Guide

DIA Creating Charts and Diagrams

Lab 3: Introduction to Data Acquisition Cards

Intro to Excel spreadsheets

Appendix 1 Install RightNow on your PC

Add an E-Commerce Catalog to your Website

idisplay v.2.0 User Guide

Call Center - Agent Application User Manual

Dreamweaver and Fireworks MX Integration Brian Hogan

Chapter 12 Creating Web Pages

Site Maintenance. Table of Contents

Getting Started with Mplus Version 7.31 Demo for Mac OS X and Linux

Getting Started Guide. Chapter 11 Graphics, the Gallery, and Fontwork

ClarisWorks 5.0. Graphics

HOUR 9. Formatting Worksheets to Look Great

understand how image maps can enhance a design and make a site more interactive know how to create an image map easily with Dreamweaver

Microsoft PowerPoint 2008

Tutorial Guide to the IS Unix Service

Oracle BIEE 11g Reports and Dashboard Hands On

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

Joomla! 2.5.x Training Manual

Create a Google Site in DonsApp

BD CellQuest Pro Software Analysis Tutorial

WebSphere Business Monitor V7.0 Script adapter lab

Exchange Group Calendar Free / Busy viewer.

Working with SQL Server Integration Services

Creating a PowerPoint Poster using Windows

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Acrobat PDF Forms - Part 2

Chapter 9 Slide Shows

Camtasia Recording Settings

WebSphere Business Monitor V6.2 Business space dashboards

Introduction to Microsoft Word 2008

Creating Analyses and Dashboards Topic List Collapse All Topics Hide All Images Print

Transcription:

caqtdm Tutorial Jim Stevens APS Controls Group October 9, 2014 Based on 2004 Medm lecture by Kenneth Evans Jr. 2013 Abridged version by Tim Mooney for SSG class 1

caqtdm Tutorial Introduction Introduction: caqtdm Channel Access Qt Display Manager A graphical user interface (GUI) for creating control screens Similar to MEDM (Motif Editor Display Manager) Based on Qt, a cross-platform application framework Qt started as a widget toolkit, expanded to run non-gui programs Runs on Linux & Windows (no X11 server required) Qt is distributed with an open source license caqtdm look & feel similar to medm; includes medm file converter Primary tool used to monitor & control devices using EPICS software 2

caqtdm Swiss Light Source Display 3

caqtdm Examples 4

caqtdm Beamline Display 5

caqtdm Background Released February 2012 Paul Scherrer Institute (Swiss Light Source) MEDM (Swiss Light Source Control System) GUI Anton Mezger, PSI MOTIF & X11 systems/libraries dated, difficult to add new features Qt is a modern GUI widget toolkit based on C++ Incorporate all existing MEDM widgets into caqtdm Convert existing MEDM adl files into XML based *.ui format Qt Designer Editor called Designer Tool For Creating Displays caqtdm Viewer Used to run a display in execute mode 6

caqtdm Environment Variables Environment Variables CAQTDM_DISPLAY_PATH Set path to *.ui files, ~caqtdm/parser, ~caqtdm-3.6.4/caqtdm_tests QT_PLUGIN_PATH ~caqtdm/caqtdm-3.6.4/caqtdm_binaries EPICS_CA_MAX_ARRAY_BYTES The maximum number of bytes transferred for an array. This should be >= the definition in the IOC. /APSshare/caqtdm HowToUse.txt Shell Scripts 7

Creating caqtdm Displays Convert, Create, & Run Create MEDM Display Convert MEDM adl file to caqtdm ui file ~caqtdm-3.6.4/caqtdm_binaries/adl2ui *.adl Edit caqtdm *.ui Display ~caqtdm/packages/qt-everywhere-opensource-src-4.8.5/bin/designer Run caqtdm Display ~caqtdm/caqtdm-3.6.4/caqtdm_binaries/caqtdm 8

caqtdm Designer 9

caqtdm Designer Settings View / Preferences Appearance Widget : Docked Box Window Appearance : Toolwindow Font Object Inspector Forms : Grid X = 2, Grid Y = 2 Property Editor 10

caqtdm Object Inspector Shows Hierarchical List of Objects MainWindow Parent Class of the Control Display centralwidget Define Main Window Background Color Widgets Object Assigned Number Class Defined by Type 11

caqtdm Designer Property Editor Each widget has a set of properties The properties are chosen via the Property Editor All widgets have X and Y Position Height and Width Others vary depending on the object Assign Property Values Channel (PV name) Color Mode (static/alarm) Visibility Max/Min Range Direction 12

caqtdm Designer Widget Box CA Widgets Divided Into Three Categories Controllers Send a value (caput) Monitors Read a value (caget) Graphics Circle, Square, Triangle Polyline Visibility based on Value, CALC, Alarm Display Widgets (Fourth Widget Type) Passive (No Channel Access) Horizontal Line Vertical Line 13

caqtdm Widgets Graphics Monitors Controllers Display caframe caled canumeric Horz. Line calabel calineargage caapplynumeric Vert. Line cagraphics cacirculargage caslider Label capolyline cathermo cachoice Calendar caimage cacartesianplot carelateddisplay Progress Bar cainclude castripplot csshellcommand cadoubletabwidget cabyte catextentry catable cabitnames cacamera camessagebutton catogglebutton cascriptbutton 14

caqtdm Widgets 15

caqtdm Style Sheet Designing Custom Widgets Used To Define Attributes of Widgets Foreground Color, Background Color, Font Size, etc. Style Sheet based on HTML Cascading Style Sheets (CSS) Default Style Sheet Assigned to parentobject of the control display Define Standard Attributes of EPICS Channel Access Widgets Can Load Style Sheet From A Local Directory Defined by caqtdm Path Some Attributes of Widgets Overwritten 16

caqtdm Style Sheet 17

caqtdm Style Sheet 18

caqtdm Style Sheet 19

caqtdm Style Sheet 20

caqtdm Style Sheet 21

caqtdm Designer Editing Drag & Drop Widgets Left Click To Select Widget Widget objectname Property Editor Right Click On Widget For Edit Menu Functions Cut, Copy, & Paste Tiled Widgets Send To Back, Bring To Front Use Arrow Keys To Move Widget Standard File Functions Open, Close, & Save Edit Undo/Redo Buffer 22

caqtdm Designer Editing 23

caqtdm Designer Editing 24

caqtdm Designer Editing 25

caqtdm Uses Scalable Fonts calabel & calineedit Widgets caqtdm Fonts calabel = Text Widget calineedit = Text Monitor (readback) fontscalemode None = No Scaling Height = Text Scaled to Height Width & Height = Used For Correct Resizing of Display Default Setting = Width & Height The font size is determined by the height of the text box The text cannot extend beyond the box horizontally In practice you vary it until it looks right 26

caqtdm Font Selection 27

caqtdm Font Alignment 28

caqtdm Scalable Fonts The width (w) & height (h) values scale uniformly Adjust the height until it looks OK 29

medm Graphics Objects Many effects are created with Graphics objects 30

caqtdm Virtual Linac Display Same effects are created with Graphics Widgets 31

caqtdm Dynamic Attribute Applies Primarily to Graphics Widgets Objects with a Dynamic Attribute can have their color or visibility change based on process variables or conditions Color Mode (Static/Alarm) Object has alarm colors (Green, Yellow, Red) Visibility Mode Visible only if the process variable is zero or only if not zero Visibility Calc Mode Visibility is based on a CALC expression involving up to 4 process variables plus HOPR, LOPR, STAT, SEVR, etc. 32

caqtdm Calc Expression Expression involving 16 variables A The value of Channel A B The value of Channel B C The value of Channel C D The value of Channel D E Reserved F Reserved G The COUNT of Channel A H The HOPR of Channel A I The STATUS of Channel A J The SEVERITY of Channel A K The PRECISION of Channel A L The LOPR of Channel A calc Channel A A>1 33

caqtdm Calc Expression Expression A The value of Channel A B The value of Channel B C The value of Channel C D The value of Channel D calc Channel A A>1 34

caqtdm Calc Expressions Syntax is the same as for the EPICS CALC record See the Record Reference Manual Some True/False Examples (for Visibility)!A Value is zero (Same as "if zero") A Value not zero (Same as 'if not zero") A=12 (or A==12) Value is 12 A#12 (or A!=12) Value is not 12 A<0&&B<0&&C<0 All are negative A>.9*H Beyond 90% of upper limit!j SEVERITY is not zero 35

What s wrong with this screen? caqtdm Execute Mode caqtdm objects turn white when the connection is lost! 36

caqtdm Drag & Drop You can drag the process variable names from an object Use Mouse Button 2 (the middle button) The Process variable name appears in its alarm color on black Cannot be dragged to any Motif Drop Site This includes Probe, StripTool, HistTool, and others Names can be dragged into a Linux text editor Can paste them in the usual places without even dragging Mouse Button 2 is a fast way to see the process variable name Doesn t work on a Mac 37

caqtdm PV Info PV Info Gives extensive information about the process variable Hover Mouse Pointer Over Widget Process Variable Name Appears Right click Get Info Icon Left Click 38

caqtdm PV Limits PV Limits Allows you to set the limits for Meters, Sliders, etc The user can: Use the values from Channel Access (HOPR, LOPR, PREC) Use the defaults set by the screen designer The screen designer can: Set it to use Channel Access values Define the limits Settings Found On Property Editor 39

caqtdm PV Limits 40

caqtdm Macros Strings of the form $(name) in an ADL file can be replaced by some other string For example, enter $(sector):$(corrector) as part of a PV name Replacement is specified: 1. On command line: caqtdm macro sector=s1a,corrector=h2 2. In Related Display configuration: Property Editor select args xx=$(xx) Allows you to design one screen and use it for many similar items The Main_XXXX.ui display uses $(xx) in front of PV names So different users have their own PV names caqtdm macro xx=user00 Main_XXXX.ui & 41

caqtdm Related Display Brings up a menu of other displays As with most caqtdm widgets there are many options If there is only one item on the menu, clicking on it brings up that one display If there is more than one item in the menu, a down arrow appears 42

caqtdm cathermo Here are some options for the cathermo Widget 43

CaQTDM cathermo Widget The no decorations mode, useful for bar graphs and effects 44

caqtdm Strip Chart The castripplot Widget Plots Up to Seven Output Values 45

caqtdm Strip Chart 46

caqtdm Strip Chart Right Click On Active Display To Modify Strip Chart 47

caqtdm Plot Widgets Strip Plot (Strip Chart) The Cartesian Plot is the most complicated caqtdm widget caqtdm uses the Qwt package Plots Up To 6 Curves Plot Arrays Using Waveform Records Plot Scalar Using A Single Process Variable Waterfall Plot Also Plots Waveforms & Scalars 48

caqtdm Documentation There is a caqtdm web page http://epics.web.psi/software/caqtdm http://epics.web.psi/software/caqtdm/caqtdm_manual http://epics.web.psi.ch/software/caqtdm/tuppc121.pdf Qt Project Homepage http://qt-project.org/ 49

Hands On Demonstration How To Create A Display Mode Button, File Edit & Palette Menus File Operations New Display, New, Open, Save, Close & Print Palettes Object Types (Graphic, Monitors, Controllers) Resource, Color, & Object Palettes Dimensions, Colors, Objects Macros & Dynamic Attributes caqtdm Tutorial String Substitutions, Calc Expressions 50

caqtdm Tutorial VNC Instructions For A Mac Laptop 1. In Apple Finder, Press Command-K, or in the menu, select Go Connect to Server. This brings up the Connect to Server dialog box. 2. In the Server Address box type "vnc://crackle-vm:5962" and press the Connect button. The Screen Sharing application should start and prompt you "Enter your password to share the screen of crackle-vm:5962". 3. Type "epics!" into the the password box (without the quotes) and press Connect. 4. You should now see the redhat Linux login screen where you can enter the username and password given to you. 51