Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

1-axis Accelerometer

Im currently using an NI CompactDAQ with one module that has two 1-axis accelerometer's, my concern is that when im saving

the data, i have way to many points because the delta t is .000605 sec. Is there any way to change the delta t? i've tried messing around with

the rates and samples per channel and have not had any luck. Is there a way that i could save part of the data, for example, only save every other

10 data points?

0 Kudos
Message 1 of 2
(2,785 Views)

Adjusting the number of samples and sampling rate should control the number of data points. I'm curious as to why that isn't working. Are you getting an error while doing so? or just incorrect behavior?

 

In terms of reducing the number of points saved to file, there are several ways to decimate data. There is a VI called Decimate (Continuous).vi that decimates an incoming data stream by a specified factor. There is a LV example called Continuous Decimating that outlines using this VI with simulated data.

 

Another way to do so would be to change the architecture of your VI such that the data appends to a file within the while loop. Then, you can specify that you only want the data point to be written to file after a certain number of iterations. For example, you could use a case structure that only appends data to the file if the iteration count of the while loop is evenly divisible by 10 (this would only write every tenth point to file).

 

I would check out the examples for more information on better structuring your program such that data is appended to file within a while loop. There is a basic example called Write to Text File.vi that outlines the basics for doing so.

 

Chris G

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,761 Views)