10-06-2016 07:43 AM - edited 10-06-2016 07:47 AM
Hey there Labview forums,
I am currently working on a project that involves working with three different DAQs, acquiring at three different speeds:
The above three are connected to an NI-9184 chassis. I display the actual data real time using property nodes, so high speed acquisition for the latter two is very much preferable. Each of those has a SubVI responsible for a specific set of measurements.
Now, for the purpose of logging the acquired data, I will be using a template-based excel logging system, which works just fine in logging the data it acquires, however, since the data from the pressure and pulse DAQs is acquired so much faster than the temperature DAQ, for each one measurement of temperature, there are many more of pressure and frequency, which throws off my whole log in excel. My questions are:
If you'd like to see code, it can be of course included, but I felt my questions were more theoretical, and at this stage, it is a bit half baked and mostly uncommented so I didn't include it for now.
Thank you for your help.
10-06-2016 01:59 PM
Bump.
10-06-2016 02:08 PM
@xen20 wrote:
- How do I make an average of a large amount of samples (say, 100) which is being output from the SubVI at a rate of 1avg/second?
The simple answer is with the Mean.vi. You will need to loop on each channel and do a mean calculation for each channel, but that is a simple FOR loop.
But since you are getting 1kS from a 10kHz sample rate, then you are getting 100ms of data with each read. You will need to append those samples to an array and then perform the mean every 10 reads.