02-02-2012 09:29 AM
HI,
I am using Embedded data logger custom device for logging the data with fifo size of 50. I want to write 1 sample per second into the tdms file. Now its writing more number of samples per second (around 40 sample per second)How can i control the number of sample writen into the TDMS file in veristand. I read about custom device loop rate control but i could implement it. How can i control the loop rate of custom device loop for Embedded data logger so that i will be able to write 1 sample per second??.
02-02-2012 02:48 PM
Each channel group you add under a log file in the Embedded Data Logger custom device has a Decimation property on it that you can set. This divides down the number of samples logged. This decimation is applied to the loop rate of the VeriStand Engine as set on the main target page. So if your target rate is 100Hz and you want to log at 1Hz, set a decimation of 100 for each channel group.
06-13-2013 09:27 AM
When using decimation, does the embedded data logger store the most recent values, or does it calculate the mean value of the samples accumulated since the previous log entry?
06-13-2013 09:32 AM
If you can see the code of Embedded data logger there is no provision for accumulating the samples and calculating the average. You have to edit the code for calculating the mean.
Thanks,
VJK