Qcodes example with Thorlabs MFF10x

[1]:
from qcodes_contrib_drivers.drivers.Thorlabs.APT import Thorlabs_APT
from qcodes_contrib_drivers.drivers.Thorlabs.MFF10x import Thorlabs_MFF10x

Initialize the instrument

First, we need to initialize the APT server. Then we can initialize the MFF10x mirror flipper.

[2]:
apt = Thorlabs_APT()
[3]:
thorlabs_mff10x = Thorlabs_MFF10x("Thorlabs_MFF10x", 0, apt)
Connected to: Thorlabs MFF002 (serial:37864181, firmware:SW Version 1.0.3) in 0.02s

Read the current position

We read the current position of the mirror flipper.

[4]:
thorlabs_mff10x.position.get()
[4]:
0

Change the position

We change the position of the flip mirror and repeat the position reading.

[5]:
thorlabs_mff10x.position.set(1)
[6]:
thorlabs_mff10x.position.get()
[6]:
1

Close instrument

[7]:
thorlabs_mff10x.close()
apt.apt_clean_up()