vishack.data.ezca¶
Easy channel access (EZCA) utilities.
Functions
|
Read channels values and returns a dict of values in the EPICS record. |
|
Read process variables channels and returns a dict of time averages |
|
Read channels time-series and returns of dict of time-series. |
- vishack.data.ezca.parallel_read(ezca, channels)¶
Read channels values and returns a dict of values in the EPICS record.
- Parameters
ezca (ezca.ezca.Ezca) – Ezca instance.
channels (list of str) – The channels to the read
- Returns
A dictionary with channel names as the key and time-series as the value.
- Return type
dict
- vishack.data.ezca.parallel_time_average(ezca, channels, duration=1.0, fs=None)¶
Read process variables channels and returns a dict of time averages
- Parameters
ezca (ezca.ezca.Ezca) – Ezca instance.
channels (list of str) – The channels to be read.
duration (float, optional) – The duration (s). Defaults to 1 second.
fs (float, optional) – Sampling frequency (s). Note, the sampling frequency of EPICS slow channels is maximum at 8 Hz. If None, will read as fast as it can. Defaults None.
- Returns
A dictionary with channel names as the keys and the time average as the value.
- Return type
dict
- vishack.data.ezca.parallel_time_series(ezca, channels, duration=1.0, fs=None)¶
Read channels time-series and returns of dict of time-series.
- Parameters
ezca (ezca.ezca.Ezca) – Ezca instance.
channels (list of str) – The channels to be read.
duration (float, optional) – The duration (s). Defaults to 1 second.
fs (float, optional) – Sampling frequency (s). Note, the sampling frequency of EPICS slow channels is maximum at 8 Hz. If None, will read as fast as it can. Defaults None.
- Returns
A dictionary with channel names as the keys and time-series as the values.
- Return type
dict