Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • tommi
  • gh-pages
  • v0.2.0
  • v0.1.0
5 results

BallAndBeam.jl

  • Clone with SSH
  • Clone with HTTPS
  • build status coverage report

    Installation (specific to lab 1 FRTN35: Frequency response analysis)

    1. If you run on your personal computer, you might need to install Julia. Download and install Julia v1.0+ from julialang.org. If you prefer a "batteries included" approach with an IDE, download and install the free version of Julia Pro.
    2. Open a terminal
    3. Type mkdir FRTN35_lab1; cd FRTN35_lab1
    4. Paste the following in a terminal
    printf 'export JULIA_DEPOT_PATH=/var/tmp/$USER\n' > julialab1
    printf 'export JULIA_EDITOR=gedit\n' >> julialab1
    printf 'julia\n' >> julialab1
    chmod +x julialab1

    (Feel free to choose another text editor if you don't like gedit.) This step only needs to be done once. Henceforth you can start julia with the environment setup by running ./julialab1 in the current directory. 4. Start ./julialab 5. Install BallAndBeam.jl using command using Pkg; Pkg.add("https://gitlab.control.lth.se/processes/BallAndBeam.jl.git"); using BallAndBeam Lots of packages will now be installed, this will take some time. 6. Type cp(joinpath(pathof(BallAndBeam),"src","FRTN35_lab1.jl")), "FRTN35_lab1.jl"); edit("FRTN35_lab1.jl"). The script FRTN35_lab1.jl will now open in the chosen text editor, edit it while following the lab manual. If unsure about how a function works, type ?function_name for help. 7. Run Pkg.activate(pathof(BallAndBeam)) to install further required packages.

    Documentation

    http://processes.gitlab.control.lth.se/documentation/ballandbeam/ http://processes.gitlab.control.lth.se/documentation/labprocesses/ In the julia REPL, you can copy and paste code from the documentation including the prompt julia> and any output, which will be automaticlly removed.

    Test

    Run, the following commands and see if tests pass (it may take a minute)

    julia> Pkg.test("BallAndBeam")
    INFO: Testing BallAndBeam
    INFO: BallAndBeam tests passed