1/7/2021 2:17 PM | |
Joined: 7/22/2019 Last visit: 2/21/2022 Posts: 2 Rating:
|
Hi All, Over the past days I have been struggling with storing analog input values in a fast buffer. Some info First:
What I try to do: Store the (processed) value of an analog input over a short period of time (+/- 1 second) into an array, and then process these values. What I alread did:
The Problem I Run into: From the documentation, I learned that LGF_FIFO puts the value at "Item" into "Buffer" only when a positive edge is detected at "Enqueue". Initially I tried using the build in clock signals to cyclically send a positive edge to the FIFO block so that it saves the measurement. However the highest frequency clock signal is 10 hz, which means 100 ms between each measurement. Using Traces I have observed that the analog input module is providing new measurements at a much high rate (roughly every 3 ms). In order to capture the full data I tried making an own pulse-train, using this example. This yielded a working 1 ms pulse train. When I supply this signal to the FIFO buffer and check the number of points in my array after roughly 1 second of measuring, I only find roughly 400 samples in the buffer instead of the almost 1000 that are expected. It seems to me that the FIFO buffer has a performance limitation. Some Questions:
Thank you all very much for your responses. |
Follow us on