Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update: Specifying the matlab version for HLCs on the NUCs

...

There is a folder called bash in the source code of the LCC. It contains scripts that are relevant for (remote) deployment of scripts, uploading scripts etc. You do not need to understand these scripts, but they are also used to load environment variables. You might encounter an error if you e.g. use another version of DDS than specified e.g. in environment_variables.bash. Your software might, for example, simply not start if the required variables could not be set. Make sure that you use the same package versions or change the entries accordingly.

Specifying the matlab version for HLCs on the NUCs

In the aforementioned bash folder there is a file lab_control_center/bash/tmux_script.bash in which the path to the Matlab version that should be used the NUC uses to execute the HLC scripts can be specified. For example to select MATLAB 2022a:

Code Block
languagebash
firstline4645
linenumberstrue
...
#Evaluate the matlab script
    SCRIPT_NAME="${SCRIPT_NAME%%.*}" #remove .m
    /usr/local/MATLAB/R2022a/bin/matlab -logfile matlab.log -sd "${PATH_TO_SCRIPT}" -batch "${SCRIPT_NAME}(${SCRIPT_ARGS})"
...

or MATLAB 2020a:

Code Block
languagebash
firstline48
linenumberstrue
/opt/MATLAB/R2020a/bin/matlab -logfile matlab.log -sd "${PATH_TO_SCRIPT}" -batch "${SCRIPT_NAME}(${SCRIPT_ARGS})"

...