In the past, we have used bash scripts to navigate to our artiq folder and then run the necessary start up commands: artiq_master, artiq_cltmgr, and artq_dashboard. This was with before MSYS2 and nix.

We're now using a new system with ARTIQ 8.9 and "MSYS2 with ARTIQ". How do we write a bash script that will execute commands in "MSYS2 with ARTIQ"? We installed it using the offline installer per the docs instructions

There's artiq_session

  • Edited

Will I need to download msys2 differently if I want to write a simple bash script to spin up artiq_session?

Same as before, MSYS2 has bash.

3 months later

Follow up question. How can the artiq_session in an msys2 terminal be "gracefully" terminated? If I use ctrl+c and then try to start up artiq_session again. I get the following error:
OSError: [Errno 10048] error while attempting to bind on address ('::1', 1067, 0, 0): [winerror 10048] only one usage of each socket address (protocol/network address/port) is normally permitted
session: master failed to start, exiting.

I'm getting some connection did not close properly. Power cycling the crate does not resolve this issues. Unplugging and replugging the ethernet does not resolve this. I've only found that restarting the host computer resolves this.

Nevermind! The dashboard was still up. Closing that resolved the issue 🙂