This is a package to collect data from a UNI-T UT61E DMM.
Based on some testing, the fastest the DMM will respond or update a parameter is 0.4 seconds. Based on this, the code will poll the DMM every 0.4 seconds with a dedicated thread and cache the value. Reading values from the insturment will be instantaneous, but could represent a value that is about 0.4 seconds old.
This is an expirement in packaging following this guide, as modified by this guide, and some help from section 2.2 of the setup script documentation.
Note, this code requires sigrok and a UNI-T 61E DMM. Some details can be found here.
%python3 -m pip install git+https://github.com/natecostello/uni_t_status.git
%python3
>>> import uni_t
>>> dmm = uni_t.DMMMonitor('volts', interface='usb0')
>>> dmm.start()
>>> dmm.value
3.242
>>> dmm.value
3.242
>>> dmm.value
3.242
>>>