Skip to content
Snippets Groups Projects
Commit 1ed6c0ee authored by David Cussans's avatar David Cussans
Browse files

Sorting out scripts

parent b02b0940
Branches
Tags
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<connections>
<connection id="DUNE_FMC_MASTER" uri="ipbusudp-2.0://192.168.200.16:50001"
address_table="file://addrtab/top.xml" />
<connection id="DUNE_FMC_SLAVE" uri="ipbusudp-2.0://192.168.200.17:50001"
address_table="file://addrtab/top.xml" />
<connection id="DUNE_FMC_SIM" uri="ipbusudp-2.0://192.168.201.16:50001"
address_table="file://addrtab/top_sim.xml" />
</connections>
../../../../components/pdts/software/si5344.py
\ No newline at end of file
#!/usr/bin/python
# -*- coding: utf-8 -*-
import uhal
from I2CuHal import I2CCore
import time
from si5344 import si5344
uhal.setLogLevelTo(uhal.LogLevel.NOTICE)
manager = uhal.ConnectionManager("file://connections.xml")
hw_tx = manager.getDevice("DUNE_FMC_TX")
hw_rx = manager.getDevice("DUNE_FMC_RX")
for hw in [hw_tx, hw_rx]:
print hw.id()
reg = hw.getNode("io.csr.stat").read()
hw.dispatch()
print hex(reg)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment