From 205fcb672bf48656feff0751a116c8ff32142929 Mon Sep 17 00:00:00 2001 From: alphonse Date: Sun, 6 Apr 2025 01:08:30 +0000 Subject: [PATCH] Update Laser Controller --- Laser-Controller.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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