You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,18 @@ This repo contains a Julia interface to the Quanser hardware-in-the-loop (HIL) S
10
10
2. To use the `PythonBackend` Install Quanser python packages as described [here](https://docs.quanser.com/quarc/documentation/python/installation.html) and manually install and load PythonCall (the python backend is an extension). Optionally, set the default backend using `QuanserInterface.set_default_backend("python")`.
11
11
3. To use the C backend (default), install the sdk, and if on Linux, possibly symlink `sudo ln -s /usr/lib/x86_64-linux-gnu/libquanser_communications.so.1 /lib/libquanser_communications.so` (or wherever the library is located on your system), I had issues with the `.1` suffix causing Libdl not to find the library. The easiest way to install all the required shared libraries is to follow the python install instructions, i.e., issue the `sudo apt install python3-quanser-apis` after having added their package server.
12
12
13
+
### Virtual environment
14
+
15
+
To install the virtual QLabs environment on MacOS, download and unzip this file: https://download.quanser.com/qlabs/latest/QLabs_Installer_maci64.zip
16
+
17
+
For installation on Windows, use : https://download.quanser.com/qlabs/latest/Install%20QLabs.exe
18
+
19
+
To carry out the actual installation on MacOS, please run`sudo ./install_QLabs.sh`
20
+
21
+
22
+
Once installed, launch it and log in using Quanser credentials.
23
+
To control the pendulum, the Quanser Interactive Labs `QUBE 2 – Pendulum > Pendulum workspace` session should be selected
24
+
13
25
### Setting preferences
14
26
Preferences.jl is used to store the default backend choice, the path to the python HIL SDK as well as the default board type. You can set these preferences by running
Copy file name to clipboardExpand all lines: src/backends.jl
+23-1
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,28 @@ function get_board()
18
18
@load_preference("board", "qube_servo3_usb")
19
19
end
20
20
21
+
"""
22
+
set_environment(board_id)
23
+
24
+
Set the environment to use, the default is `"physical"`. To use virtual pendulum, pass "virtual pendulum". To use virtual DC motor pass "virtual DC motor"
0 commit comments