10
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS [email protected] 2012, January 9-12 at NSRRC, Taiwan Control System Studio Training - Compiling, running CSS

Control System Studio Training - Compiling, running CSS

Embed Size (px)

DESCRIPTION

Control System Studio Training - Compiling, running CSS. Kay Kasemir ORNL/SNS [email protected] 2012, January 9-12 at NSRRC, Taiwan. End Users can “ use ” CSS … if somebody prepares it for them!. Getting CSS to run from source code. Get Java , Eclipse, CSS Sources Start Eclipse - PowerPoint PPT Presentation

Citation preview

Page 1: Control System Studio Training - Compiling, running CSS

Managed by UT-Battellefor the Department of Energy

Kay Kasemir

ORNL/SNS

[email protected]

2012, January 9-12 at NSRRC, Taiwan

Control System Studio Training

-Compiling,

running CSS

Page 2: Control System Studio Training - Compiling, running CSS

2 Managed by UT-Battellefor the Department of Energy

End Users can“use”CSS

if somebody prepares it for them!

Page 3: Control System Studio Training - Compiling, running CSS

3 Managed by UT-Battellefor the Department of Energy

Getting CSS to run from source code

1. Get Java, Eclipse, CSS Sources

2. Start Eclipse

3. “Import” Sources into Workspace

4. Open CSS *.product file, Launch

5. Maybe Export *.product

Page 4: Control System Studio Training - Compiling, running CSS

4 Managed by UT-Battellefor the Department of Energy

Java, Eclipse

Check: Is java available?java -version

Need Sun/Oracle Java 1.6, 1.7;Not GCJ, OpenJDK

Start Eclipse eclipse/eclipse

“Workspace”:use CSS/Workspace in your home directory

Page 5: Control System Studio Training - Compiling, running CSS

5 Managed by UT-Battellefor the Department of Energy

Source Code vs. Eclipse Workspace Source Code:– Where the

sources are

Workspace:Directory with“.metadata”subdir.– Tracks currently

open window, …

To avoid confusion: Keep Separate!– Example: Use CSS/Sources, CSS/Workspace

Page 6: Control System Studio Training - Compiling, running CSS

6 Managed by UT-Battellefor the Department of Energy

Eclipse Workspace

“Import” Sourcesinto Workspace:– File/Import…,

General,Existing Projectsinto Workspace

– Select “root” directory,import all projects found

– Do not“Copy projects into Workspace”

Note: Need to “Import” even if sources are already located in workspace directory

Page 7: Control System Studio Training - Compiling, running CSS

7 Managed by UT-Battellefor the Department of Energy

Run Product

Open org.csstudio.basic.epics.product/*.product

Press1. Synchronize

2. Launch an Eclipse application

3. Later, re-run via the Run button in toolbar

Page 8: Control System Studio Training - Compiling, running CSS

8 Managed by UT-Battellefor the Department of Energy

First Steps

Close the “Welcome…” screen

Check Menu Edit/Preferences/CSS Core/EPICS– Channel Access address list: 127.0.0.1?

Menu CSS/Diagnostic Tools/Probe– Demo PVs: “sim://sine”, “demo:tank”

CSS/Diagnostic Tools/EPICS PV Tree

Move Windows around

Context menu

Page 9: Control System Studio Training - Compiling, running CSS

9 Managed by UT-Battellefor the Department of Energy

Check Point

We can compile, launch, use CSS within IDE

Create Standalone Product

Page 10: Control System Studio Training - Compiling, running CSS

10 Managed by UT-Battellefor the Department of Energy

Exporting a Product

Export Product– Root Directory

Name, e.g. “css” no path!

– Destination Directory

Path,e.g. /usr/fred/CSS/bin

Directory must be empty!

– Un-check “Generate metadata repository”

Finish, try the result