ChimeraTK-ApplicationCore 04.06.00
Loading...
Searching...
No Matches
ovenInit.py
Go to the documentation of this file.
1#!/bin/env python3
2import deviceaccess as da
3import time
4
5# Set DMAP file name
6da.setDMapFilePath("demo_example.dmap")
7
8# Open the oven device directly, without logical name mapping, to access all registers
9dev = da.Device("device")
10dev.open()
11
12# reset the device
13print("Resetting oven device...")
14dev.write("BOARD.RESET_N", 0)
15time.sleep(0.1)
16dev.write("BOARD.RESET_N", 1)
17
18# (inverted) reset line is released now. Additional initialisation would go here.
19print("Reset done, device is now ready.")