Create check_ref.py

check if other acquisition instance is running, and operates with it.