paulscherrerinstitute / pcaspy

Portable Channel Access Server in Python
BSD 3-Clause "New" or "Revised" License
32 stars 24 forks source link

Discussion: strategies to update PVs, if a device collects a single data point at high repetition rate. #84

Closed vstadnytskyi-FDA closed 1 year ago

vstadnytskyi-FDA commented 2 years ago

Hi,

I wanted to learn more about what are normal practices to deal with devices that collect data at, for example, 400Hz. I have a daq that spits out one float64 number at 400Hz. I can update PV every time I get a new value from the DAQ, or I can include some averaging capabilities if needed. Would it be more elegant to send, for example, 1 second worth of data as one PV. What are your thoughts?

xiaoqiangwang commented 2 years ago

The choices you give are all valid options. To summarise,

  1. raw data input
  2. N sample average
  3. circular buffer See the compress record for more algorithms.

Wether to implement them depends on your requirements.