Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
running_matlab
running_matlab
Running MATLAB

Code Block
languagebash
# Launch in desktop mode:
$ run_matlab.bash -m 2023a -d

# Launch in terminal mode:
$ run_matlab.bash -m 2023a


To In order to set up your environment to use one of the supported versions of MATLAB for development and configuration setup purposes, you need to follow one of the appropriate setup procedures below.

Anchor
running_matlab_2022b
running_matlab_2022b
2023a

  • Development

    WarningDo not run MATLAB instances on mcclogin or lcls-prod02.

    (MATLAB should be run on

    aird

    lcls-

    b50-srv01

    dev3 in DEV. Do not run MATLAB instances on login nodes such as centos7.)

    Code Block
    languagebash
    $ source /afs/slac/g/lcls/epics/setup/epicsenv-7.0.3.1-1.0.bash
    $ source /afs/slac/g/lcls/tools/oracle/oracleSetup-R11.2.0.4.bash
    $ export MATLAB_VER=2023a
    $ export MLM_LICENSE_FILE="27010@license701,27010@license702,27010@license703"
    $ source /afs/slac/g/lcls/tools/matlab/setup/matlabSetup64.bash
    
    # Launch in desktop mode:
    $ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so matlab &
    $ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so /afs/slac/g/lcls/package/matlab/2023a/bin/matlab &		# If "matlab &" couldn't find the correct location, use the absolute path
    $ run_matlab.bash -m 2023a -d
    
    
    # Launch in terminal mode: 
    $ run_matlab.bash --matlab=m 2023a
  • Production (Run on softegr@lcls-srv01 or physics@lcls-srv04 ssrv01 in PROD. Do not run MATLAB instances on mcclogin.)

    Code Block
    languagebash
    $ source /usr/local/lcls/epics/epicsenv-7.0.3.1-1.0.bash
    $ source /usr/local/lcls/tools/oracle/oracleSetup-R11.2.0.4.bash
    $ export MATLAB_VER=2023a 
    $ source /usr/local/lcls/tools/matlab/setup/matlabSetup64.bash
    
    # Launch in desktop mode: 
    $ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so matlab &
    $ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so /usr/local/lcls/package/matlab/2022b/bin/matlab &		# If "matlab &" couldn't find the correct location, use the absolute path
    $ run_matlab.bash -m 2023a -d
    
    # Launch in terminal mode: 
    $ run_matlab.bash --matlab=m 2023a

Anchor
configuring_matlab
configuring_matlab
Configuring MATLAB

...

Below are the working java.opts files for Development and Production.

...

2023a

Development
Code Block
languagetext
-Xbootclasspath/p:/afs/slac/g/lcls/package/iona/orbacus/prod/JOB/lib/OB.jar
-DAIDA_NAMESERVER_IOR_URL=http://mccas0.slac.stanford.edu/aida/NameServerPROD.ior
-DOOC_COSEVENTCONFIG_PATHNAME=/afs/slac/g/lcls/package/err/common/script/ooc_CosEvent_server.conf
-DAIDA_CLIENT_TIMEOUT=90
-Dgov.aps.jca.jni.JNIContext.jca.use_env=true
-Djca.use_env=true
-DEPICS_PVA_SERVER_PORT=5075
-DEPICS_PVA_BROADCAST_PORT=5076
-DEPICS_PVA_AUTO_ADDR_LIST=FALSE
-DEPICS_PVA_ADDR_LIST=134.79.219.255 lcls-dev1.slac.stanford.edu mcc-simul.slac.stanford.edu

...

Note

The lines listed for each file below must be APPENDED to the end of the existing default MATLAB classpath.txt file for the configuration to work. Do not remove the preceding lines in the default MATLAB classpath.txt file.

...

2023a

Development
Code Block
languagetext
# Additions to classpath.txt
# ****************************************************************************************************************
# EPICS 7 Java Interface
# ****************************************************************************************************************
/afs/slac/g/lcls/epics/java/epicsCoreJava/R7.0.8-1.0.0/products/epics-pvaccess-5.1.7.jar
/afs/slac/g/lcls/epics/java/epicsCoreJava/R7.0.8-1.0.0/products/epics-pvdata-6.1.7.jar
/afs/slac/g/lcls/epics/java/epicsCoreJava/R7.0.8-1.0.0/products/epics-ntypes-0.3.7.jar
/afs/slac/g/lcls/epics/java/epicsCoreJava/R7.0.8-1.0.0/products/epics-util-1.0.5.jar
/afs/slac/g/lcls/epics/java/epicsCoreJava/R7.0.8-1.0.0/products/jca-2.4.2.jar
/afs/slac/g/lcls/epics/extensions/R1.3.0/javalib/jca.jar
/afs/slac/g/lcls/epics/java/pvaClientJava/R4.3.2-0.0.2/products/epics-pvaclient-4.3.2.jar
# ****************************************************************************************************************
# ****************************************************************************************************************
# Oracle Database connectivity
# ****************************************************************************************************************
/afs/slac/g/lcls/package/oracle/product/11.2.0.4/linux-x86_64/jdbc/lib/ojdbc5.jar
# ****************************************************************************************************************
# ****************************************************************************************************************
# IONA ORBacus ==> CORBA-based Client Server API
# ****************************************************************************************************************
/afs/slac/g/lcls/package/iona/orbacus/prod/JOB/lib/OB.jar
/afs/slac/g/lcls/package/iona/orbacus/prod/JOB/lib/OBEvent.jar
/afs/slac/g/lcls/package/iona/orbacus/prod/JOB/lib/OBUtil.jar
# ****************************************************************************************************************
# ****************************************************************************************************************
# AIDA Interface
# ****************************************************************************************************************
/afs/slac/g/lcls/physics/package/aida/lib/aida.jar
/afs/slac/g/lcls/physics/package/aida/lib/aidadp.jar
/afs/slac/g/lcls/physics/package/err/lib/err.jar
/afs/slac/g/lcls/package/except/lib/except.jar
# ****************************************************************************************************************
# ****************************************************************************************************************
# SLAC Java APIs
# ****************************************************************************************************************
/afs/slac/g/lcls/physics/release/hlaExtensions/hlaExtensions-R2-0-0/jar/hlaExtensions.jar
/afs/slac/g/lcls/physics/release/xal4lcls/xal4lcls-R1-0-0/build/jar/ext.jar
/afs/slac/g/lcls/physics/release/xal4lcls/xal4lcls-R1-0-0/build/jar/xal.jar
/afs/slac/g/lcls/physics/release/hlaCommon/hlaCommon-R2-0-0/jar/hlaCommon.jar
/afs/slac/g/lcls/epics/extensions/R1.3.0/lib/rhel7-x86_64
/afs/slac/g/lcls/physics/release/MessageLogAPI/MessageLogAPI-R1-0-0/jar/MessageLogAPI.jar
# ****************************************************************************************************************

...

Note

The lines listed for each file below must be APPENDED to the end of the existing default MATLAB librarypath.txt file for the configuration to work. Do not remove the preceding lines in the default MATLAB librarypath.txt file.

...

2023a

Development
Code Block
languagetext
# Additions to librarypath.txt
/afs/slac/g/lcls/epics/extensions/R1.3.0/lib/rhel7-x86_64
/afs/slac/g/lcls/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64
/afs/slac/g/lcls/package/oracle/product/11.2.0.4/linux-x86_64/lib

...