diff --git a/Laser-Controller.md b/Laser-Controller.md index 1215df7..2cc9c6b 100644 --- a/Laser-Controller.md +++ b/Laser-Controller.md @@ -47,4 +47,13 @@ The command to connect with Minicom is: The device name/number may change. -Once in minicom, press `CTRL+a`, `z` then `e` for echo mode. \ No newline at end of file +Once in minicom, press `CTRL+a`, `z` then `e` for echo mode. + +# Controlling the Lasers in Julia + +The lasers can be controlled directly via the serial port, or via wrapper functions in Julia. + +1. Open a new Julia REPL by opening the terminal and typing `julia`. +2. Type `]` to enter the `pkg>` prompt, then type `activate Photoacoustic`. +3. Press backspace to exit `pkg`, then (when back at the `julia> prompt`), type `using Photoacoustic`. +4. Now, you can use Julia to turn the lasers on and off with the commands `blueOff()`, `blueOn()`, `greenOff()`, ..., and so on. The functions take no arguments. \ No newline at end of file