export PATH=/usr/bin:$PATH

# Check RT priority for adq
ps -Leo pid,ppid,tid,rtprio,comm | grep adq

# Set RT priority for adq
#/usr/bin/chrt -pf 95 `ps -Leo tid,comm | /usr/bin/awk '/adq_pcie_/'`
#/usr/bin/chrt -pf 96 `ps -Leo tid,comm | /usr/bin/awk '/irq.*adq_pci/'`
# Changing RT prio for the irq proc doesn't work because the PID changes every time acquisition is restarted
# irq rt prio is set to 50 by default, so we'll set the kernel driver prio to 49
/usr/bin/chrt -pf 49 `ps -Leo tid,comm | /usr/bin/awk '/adq_pcie_/'`

ps -Leo pid,ppid,tid,rtprio,comm | grep adq

