Installation (specific to lab 1 FRTN35: Frequency response analysis)
- Open a terminal
- Type
export JULIA_PKGDIR=/var/tmp/$USER; export JULIA_EDITOR=gedit
. (Feel free to choose another text editor if you don't like gedit.) At the moment, this has to be done every time you restart the terminal (Anders Blomdell will fix). - Type
mkdir FRTN35_lab1; cd FRTN35_lab1
- Start
julia
- Install
BallAndBeam.jl
using commandPkg.clone("https://gitlab.control.lth.se/processes/BallAndBeam.jl.git"); using BallAndBeam
Lots of packages will now be installed, this will take some time. - Type
cp(Pkg.dir("BallAndBeam","src","FRTN35_lab1.jl"), "FRTN35_lab1.jl"); edit("FRTN35_lab1.jl")
. The scriptFRTN35_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.
Documentation
Build and launch the documentation website using:
julia> using BallAndBeam
julia> opendoc()
In the julia REPL, you can copy and paste code 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