01-22-2015 03:47 PM
01-23-2015 11:49 AM
Hi,
Could you please clarify what you are trying to do. What software are you using to do this? Is this just data analysis and no data acquistion? Providing clarity to your question should allow the community to better assist you.
01-23-2015 01:52 PM
01-26-2015 09:24 AM
I am still not 100% sure on what you are doing as you seem to be changing between referring to the baseline in multiple different units (time,nm) It sounds like the baseline is something you are measuring and you are wanting to change it dynamically.
In LabVIEW I might try using a boolean with a case structure. In the case structure you can reset the baseline when the user clicks a button. When the user is not clicking a button you can pass the same baseline straight through the case structure.
Another architecture you might try is some form of sequencing using a state machine or sequence structure where the beginning of the program takes the measurements and determines the baseline. The next sequence looks for the 4nm deviation. The preferred architecture is up to you but these are things I might try.
01-27-2015 02:56 PM
Thanks for that Matt.
Please find attached the VI that I am using to collect and analyse the data and an couple example data sets.
Main issue I have is that the baseline time and value is not the same for every one. Therefore I need to be able to select a point where to analyse from. At the moment the data is searching for 4Nm below baseline, however the time and value of the baseline varies.
Apologies if I am confusing. It is confusing me after staring at it for so long.
01-28-2015 08:00 AM
rtimm5,
Please add comments to your code to identify where you are currently setting the baseline value and time. Also if you could describe to me where this takes place it will help me find the issue.
01-30-2015 03:00 AM
Hi Matt,
I have attached the VI again. I added some comments in it, however as you follow the wiring across, there is a Sub VI where I put "RTD VI" above it. Its inside this VI that baseline is determined.
Thanks again
01-30-2015 12:12 PM
Is it possible that you could also include the RTD VI. so that I can see how you are setting the baseline?
02-02-2015 01:36 PM
Apologies Matt. I thought I uploaded it. Here it is.
02-02-2015 01:48 PM
Thank you, looking at your main VI as well as your subVI it appears that the only variables controlling the baseline are the "milliseconds to start after baseline" and the "millisec to sample". Based on your earlier descriptions where you currently have constants wired in you now need to change your inputs for every unique case. Is this correct? or is this subVI a previous attempt to change the baseline and thats what you are doing by averaging the data? Would you be opposed to requiring the user to input the baseline when running this analysis, or having the user input parameters and the analysis not completing until the parameters are entered. This would allow you to change your baseline based on user inputs.