12-06-2016 10:19 AM
I have a small program where I am analyzing two force signals via a DAQ Assistant VI, getting an arithematic mean of both signals via the "Statistics" VI, and then writing the data to file. My question is with the arithematic mean. What samples of the data are being averaged? In my DAQ Assistant the Acquistion Mode is set to Continuous Samples, Samples To Read = 100, Rate = 1 kHz. Is the data being averaged the 100 samples from the DAQ Assistant?
Thanks,
D.
Solved! Go to Solution.
12-06-2016 10:26 AM
If you are trying to share your code, you need to attach the VI as well. The project file is just an XML file that points to the VI files.
12-06-2016 11:12 AM
Ok, thanks. Attached VI.
D.
12-06-2016 12:22 PM
Yes. The 100 samples you collected in the DAQ assistant are being averaged together.
(Be sure to show the labels for all of your terminals in the block diagram and that they have meaningful names.)
12-06-2016 12:32 PM
The faster way to get to that same answer Raven's Fan just gave you is to hit the "Help button on the configuration page for the Express.vi
12-06-2016 01:45 PM
Jeff,
Yes, we saw that in the help prior to posting the question. However, I still was hazy on how many samples were actually in "Signals" after the acquistion. Furthermore, the difference between "Continuous" Acquistion and "N-Samples" and if that would affect the way the samples are read and averaged. We are running the VI continuous.
Regretfully, I don't get a lot of exposure to LabView. Maybe a couple times year? So when I'm required to do something using LV, it's all French to me again.
Thanks,
D
12-06-2016 04:01 PM
Fair enough! Samples in Signals at any time is determined by "Samples to read"