02-21-2018 11:36 AM
Hello Everyone,
I am conducting a project that will collect a large amount of data, approx. 500,000 data points per sensor per file. I am recording the raw data to a measurement file while the experiment is being conducted. I am then wanting to write a program that will read the collected data from a measurement file and process the data. I am having a hard time starting this process but just for simplicity i am wanting the program to read acceleration data from a measurement file and then integrate the data to get velocity and position. After integration I would like the all data to be displayed in a time history format.
Can anyone help me get started with writing this program? I have read several articles and have attempted to write the program myself with no such luck.
Thank you!
02-21-2018 11:45 AM
Hello Weagle,
My magic 8-Ball is pretty good but, We can't figure out what you've done wrong unless we see what you've done.
Attach some attempt at the code and a small example file.
02-21-2018 11:45 AM
@Weagle1618 wrote: I am recording the raw data to a measurement file while the experiment is being conducted.
What type of measurement file? TDMS? CSV? Raw binary? You first have to know this in order to read the data. After that, there are a few VIs for Integration and you can just use a Waveform Graph to display the data.
02-22-2018 01:39 PM
I have not played around much with this program but this is what i have so far. I have attached the LVM file I am attempting to read. I would like the program to read the file and then allow me to manipulate the data as I need too ( integrate, filter, etc.) then to display the data. I am having trouble getting the program to read the entire file.
Thank you for the help!
02-22-2018 02:35 PM
Thanks for including your program and your data. When I ran it, it ran your Read loop 386 times, reading 1000 points per read (for a total of 386,000), then plotted two waveform charts of the last 1000 points, as you asked it to do. In other words, the code works just fine, and your data file also appears to be fine.
So what did you really want to do? Do you want to concatenate all 386 chunks of data into a single big array? Then learn how to use an Indexing/Concatenating Tunnel on your output. You can then play with your data.
Bob Schor
02-26-2018 10:58 AM
I have gotten the code to collect the data I need but it is neglecting the time and is plotting everything in terms of sample number. Can anyone help me correct this program so that the acceleration record is in the time domain so that i may apply filters and and perform spectral analysis? this is my current code.
02-26-2018 11:25 AM
Best is to learn enough to avoid Express VIs, and especially avoid Dynamic Data Wires. Next best is to learn how to use the Functions you are using, and to realize that you can export Dynamic Data as a Waveform (which preserves the Timing information that you so carefully saved) instead of throwing all the timing away by exporting an array of numbers.
Bob Schor