06-22-2008 11:35 AM
06-22-2008 03:35 PM
Bandit wrote:
1. Find a best fit line through the data.
06-22-2008 05:13 PM
Thanks for the reply Altenbach. I'm not the only one looking at the forum on a Sunday then!
Sadly I don't have a good model. The experimental data will rise from a base level, the rate of rise will vary considerably, and it will attain a peak value, which it may or may not hold.
(or if the experimental event fails to occur - just a long flat line! )
I'll try and convert some data to a postable form when I'm in the office. This application is the first where I have used TDMS format for storage - anything previously and I'd have a handy .csv file ready to post.
I could reduce noise by sampling at a faster rate and averaging adjacent points to get back to the required rate.
I could also find the area of the curve where the slope is steepest, and then average a number of slope results in this area. I don't expect to find sudden changes in the steepest part of the curve.
Regards,
Bandit.
06-25-2008 06:48 AM
Hi Altenbach. Data is attached, with a .vi to view it (LV8.5, WinXP)
I exported the data to a csv file from the tdms file I use for storage. It has 3 columns, with explanitory headers, time, sensor1, sensor 2.
I cut the data file down a lot, the original is a couple of seconds long at 50kHz sampling rate. Here is just the region of interest with the pressure rise, but noise levels are the same throughout the full length file.
This data was captured from pressure sensors in a chamber at ambient pressure, with a second chamber at higher pressure connected via a manually operated valve. Rise occurs when valve between chambers is opened. After pressure peaks, it looks like the pressure wave reflects around the chamber a little. I can't be sure how close this simulation is to the real thing, but during real tests I expect to see a range of pressure rises both faster and slower.
Anyway, if you zoom the chart you can clearly see that point to point dy/dt will vary considerably and not be representative of the slope I'm looking for.
I took a look at the curve fitting .vi's in the mathematics pallette (I'm using LV pro BTW) and I guess your comment about knowing what model to use stems from these.
I hope this example proves useful, and look forward to your observations.
Regards,
Bandit.
06-25-2008 06:50 AM - edited 06-25-2008 06:51 AM
Oops - see attachment
06-25-2008 07:58 AM
06-25-2008 08:02 AM
06-25-2008 08:20 AM
06-25-2008 10:02 AM
07-31-2008 09:30 AM
First - apologies to all. As usuall I'm juggling several projects, but nevertheless I should have replied sooner.
Second - thanks to all. Your advice was very helpful. The fft helped me identify a source of noise and improve wiring to keep it out. The best solution for my application then proved to be the best fit line. I have a solution and I'm very happy with it.
Bandit